lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r329524 - /lucene/java/trunk/src/java/org/apache/lucene/index/FieldsReader.java
Date Sun, 30 Oct 2005 05:38:49 GMT
Author: yonik
Date: Sat Oct 29 22:38:46 2005
New Revision: 329524

URL: http://svn.apache.org/viewcvs?rev=329524&view=rev
Log:
remove synchronized from fakeNorms (private & set omitNorms flag on field

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/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/index/FieldsReader.java?rev=329524&r1=329523&r2=329524&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 Sat Oct 29 22:38:46
2005
@@ -117,18 +117,23 @@
           store = Field.Store.COMPRESS;
           final byte[] b = new byte[fieldsStream.readVInt()];
           fieldsStream.readBytes(b, 0, b.length);
-          doc.add(new Field(fi.name,      // field name
+          Field f = new Field(fi.name,      // field name
               new String(uncompress(b), "UTF-8"), // uncompress the value and add as string
               store,
               index,
-              termVector));
+              termVector);
+          f.setOmitNorms(fi.omitNorms);
+          doc.add(f);
         }
-        else
-          doc.add(new Field(fi.name,      // name
+        else {
+          Field f = new Field(fi.name,     // name
                 fieldsStream.readString(), // read value
                 store,
                 index,
-                termVector));
+                termVector);
+          f.setOmitNorms(fi.omitNorms);
+          doc.add(f);
+        }
       }
     }
 



Mime
View raw message