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:
Yonik Seeley 2005-10-30 05:38:46 +00:00
parent 07d7d0701f
commit 25d317acaf
1 changed files with 10 additions and 5 deletions

View File

@ -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);
}
}
}