From f753fb287359d34798976f3cf21e9590875b7ba2 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Fri, 14 May 2010 06:12:15 +0000 Subject: [PATCH] add a temporary workaround for the sort order problem git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@944130 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/lucene/search/AutomatonTermsEnum.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lucene/src/java/org/apache/lucene/search/AutomatonTermsEnum.java b/lucene/src/java/org/apache/lucene/search/AutomatonTermsEnum.java index 852ed680524..69ac17e6a7b 100644 --- a/lucene/src/java/org/apache/lucene/search/AutomatonTermsEnum.java +++ b/lucene/src/java/org/apache/lucene/search/AutomatonTermsEnum.java @@ -158,6 +158,11 @@ public class AutomatonTermsEnum extends FilteredTermsEnum { // seek to the next possible string; if (nextString()) { // reposition + + // FIXME: this is really bad to turn off + // but it cannot work correctly until terms are in utf8 order. + linear = false; + if (linear) setLinear(infinitePosition); return seekBytesRef;