lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r885460 - /lucene/java/branches/flex_1458/src/test/org/apache/lucene/index/TestIndexWriter.java
Date Mon, 30 Nov 2009 15:37:15 GMT
Author: mikemccand
Date: Mon Nov 30 15:37:14 2009
New Revision: 885460

URL: http://svn.apache.org/viewvc?rev=885460&view=rev
Log:
LUCENE-1458 (on flex branch): confirm U+FFFF is untouched during indexing

Modified:
    lucene/java/branches/flex_1458/src/test/org/apache/lucene/index/TestIndexWriter.java

Modified: lucene/java/branches/flex_1458/src/test/org/apache/lucene/index/TestIndexWriter.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/flex_1458/src/test/org/apache/lucene/index/TestIndexWriter.java?rev=885460&r1=885459&r2=885460&view=diff
==============================================================================
--- lucene/java/branches/flex_1458/src/test/org/apache/lucene/index/TestIndexWriter.java (original)
+++ lucene/java/branches/flex_1458/src/test/org/apache/lucene/index/TestIndexWriter.java Mon
Nov 30 15:37:14 2009
@@ -4594,8 +4594,10 @@
     doc = new Document();
     doc.add(new Field("field", "a", Field.Store.NO, Field.Index.ANALYZED));
     w.addDocument(doc);
+    IndexReader r = w.getReader();
+    assertEquals(1, r.docFreq(new Term("field", "a\uffffb")));
+    r.close();
     w.close();
-
     _TestUtil.checkIndex(d);
     d.close();
   }



Mime
View raw message