lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r768908 - /lucene/java/trunk/src/java/org/apache/lucene/index/FieldsReader.java
Date Mon, 27 Apr 2009 09:34:06 GMT
Author: mikemccand
Date: Mon Apr 27 09:34:05 2009
New Revision: 768908

URL: http://svn.apache.org/viewvc?rev=768908&view=rev
Log:
LUCENE-1615: remove some more deprecated uses of Fieldable.omitTf

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/FieldsReader.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/FieldsReader.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/FieldsReader.java?rev=768908&r1=768907&r2=768908&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/FieldsReader.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/FieldsReader.java Mon Apr 27 09:34:05
2009
@@ -313,7 +313,7 @@
       Field.Index index = getIndexType(fi, tokenize);
       Field.TermVector termVector = getTermVectorType(fi);
 
-      Fieldable f;
+      AbstractField f;
       if (compressed) {
         store = Field.Store.COMPRESS;
         int toRead = fieldsStream.readVInt();
@@ -322,7 +322,7 @@
         //skip over the part that we aren't loading
         fieldsStream.seek(pointer + toRead);
         f.setOmitNorms(fi.omitNorms);
-        f.setOmitTf(fi.omitTermFreqAndPositions);
+        f.setOmitTermFreqAndPositions(fi.omitTermFreqAndPositions);
       } else {
         int length = fieldsStream.readVInt();
         long pointer = fieldsStream.getFilePointer();
@@ -333,7 +333,7 @@
           fieldsStream.skipChars(length);
         f = new LazyField(fi.name, store, index, termVector, length, pointer, binary);
         f.setOmitNorms(fi.omitNorms);
-        f.setOmitTf(fi.omitTermFreqAndPositions);
+        f.setOmitTermFreqAndPositions(fi.omitTermFreqAndPositions);
       }
       doc.add(f);
     }
@@ -372,7 +372,7 @@
       Field.Index index = getIndexType(fi, tokenize);
       Field.TermVector termVector = getTermVectorType(fi);
 
-      Fieldable f;
+      AbstractField f;
       if (compressed) {
         store = Field.Store.COMPRESS;
         int toRead = fieldsStream.readVInt();
@@ -385,7 +385,7 @@
                 store,
                 index,
                 termVector);
-        f.setOmitTf(fi.omitTermFreqAndPositions);
+        f.setOmitTermFreqAndPositions(fi.omitTermFreqAndPositions);
         f.setOmitNorms(fi.omitNorms);
       } else {
         f = new Field(fi.name,     // name
@@ -394,7 +394,7 @@
                 store,
                 index,
                 termVector);
-        f.setOmitTf(fi.omitTermFreqAndPositions);
+        f.setOmitTermFreqAndPositions(fi.omitTermFreqAndPositions);
         f.setOmitNorms(fi.omitNorms);
       }
       doc.add(f);



Mime
View raw message