lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r756639 - /lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestOmitTf.java
Date Fri, 20 Mar 2009 17:16:00 GMT
Author: mikemccand
Date: Fri Mar 20 17:16:00 2009
New Revision: 756639

URL: http://svn.apache.org/viewvc?rev=756639&view=rev
Log:
LUCENE-1561: fix back-compat tests for rename omitTf -> omitTermFreqAndPositions

Modified:
    lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestOmitTf.java

Modified: lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestOmitTf.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestOmitTf.java?rev=756639&r1=756638&r2=756639&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestOmitTf.java
(original)
+++ lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestOmitTf.java
Fri Mar 20 17:16:00 2009
@@ -91,8 +91,8 @@
     // only one segment in the index, so we can cast to SegmentReader
     SegmentReader reader = (SegmentReader) IndexReader.open(ram);
     FieldInfos fi = reader.fieldInfos();
-    assertTrue("OmitTf field bit should be set.", fi.fieldInfo("f1").omitTf);
-    assertTrue("OmitTf field bit should be set.", fi.fieldInfo("f2").omitTf);
+    assertTrue("OmitTf field bit should be set.", fi.fieldInfo("f1").omitTermFreqAndPositions);
+    assertTrue("OmitTf field bit should be set.", fi.fieldInfo("f2").omitTermFreqAndPositions);
         
     reader.close();
     ram.close();
@@ -144,8 +144,8 @@
     // only one segment in the index, so we can cast to SegmentReader
     SegmentReader reader = (SegmentReader) IndexReader.open(ram);
     FieldInfos fi = reader.fieldInfos();
-    assertTrue("OmitTf field bit should be set.", fi.fieldInfo("f1").omitTf);
-    assertTrue("OmitTf field bit should be set.", fi.fieldInfo("f2").omitTf);
+    assertTrue("OmitTf field bit should be set.", fi.fieldInfo("f1").omitTermFreqAndPositions);
+    assertTrue("OmitTf field bit should be set.", fi.fieldInfo("f2").omitTermFreqAndPositions);
         
     reader.close();
     ram.close();
@@ -189,8 +189,8 @@
     // only one segment in the index, so we can cast to SegmentReader
     SegmentReader reader = (SegmentReader) IndexReader.open(ram);
     FieldInfos fi = reader.fieldInfos();
-    assertTrue("OmitTf field bit should not be set.", !fi.fieldInfo("f1").omitTf);
-    assertTrue("OmitTf field bit should be set.", fi.fieldInfo("f2").omitTf);
+    assertTrue("OmitTf field bit should not be set.", !fi.fieldInfo("f1").omitTermFreqAndPositions);
+    assertTrue("OmitTf field bit should be set.", fi.fieldInfo("f2").omitTermFreqAndPositions);
         
     reader.close();
     ram.close();



Mime
View raw message