lucene 4: only omit_norms on non analyzed field if boost is not set

This commit is contained in:
Shay Banon 2012-11-03 23:44:23 +01:00
parent 72f41111c9
commit 25717ab253
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ public class StringFieldMapper extends AbstractFieldMapper<String> implements Al
// index options, as probably what the user really wants
// if they are set explicitly, we will use those values
if (fieldType.indexed() && !fieldType.tokenized()) {
if (!omitNormsSet) {
if (!omitNormsSet && boost == Defaults.BOOST) {
fieldType.setOmitNorms(true);
}
if (!indexOptionsSet) {