mirror of https://github.com/apache/lucene.git
remove synchronized from fakeNorms (private & set omitNorms flag on field
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@329524 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
07d7d0701f
commit
25d317acaf
|
@ -117,18 +117,23 @@ final class FieldsReader {
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue