Skip to content

Apache Lucene open-source search software

clean up

Robert Muir15cc2d6c2a63
diff --git a/lucene/src/java/org/apache/lucene/index/codecs/preflex/PreFlexFields.java b/lucene/src/java/org/apache/lucene/index/codecs/preflex/PreFlexFields.java
index e286d981ae1..10fa047d32d 100644
--- a/lucene/src/java/org/apache/lucene/index/codecs/preflex/PreFlexFields.java
+++ b/lucene/src/java/org/apache/lucene/index/codecs/preflex/PreFlexFields.java
@@ -432,13 +432,9 @@ public class PreFlexFields extends FieldsProducer {
isNonBMPChar(prevTerm.bytes, newSuffixStart) &&
isHighBMPChar(scratchTerm.bytes, newSuffixStart)) {
- // Seek type 2 -- put U+FFFF at this position:
- // nocommit -- can we somehow use 0xff???
+ // Seek type 2 -- put 0xFF at this position:
scratchTerm.bytes[newSuffixStart] = (byte) 0xff;
- //scratchTerm.bytes[newSuffixStart] = (byte) 0xef;
- scratchTerm.bytes[newSuffixStart+1] = (byte) 0xbf;
- scratchTerm.bytes[newSuffixStart+2] = (byte) 0xbf;
- scratchTerm.length = newSuffixStart+3;
+ scratchTerm.length = newSuffixStart+1;
if (DEBUG_SURROGATES) {
System.out.println(" seek to term=" + UnicodeUtil.toHexString(scratchTerm.utf8ToString()) + " " + scratchTerm.toString());