lucene 4: only omit_norms on non analyzed field if boost is not set
This commit is contained in:
parent
72f41111c9
commit
25717ab253
|
@ -120,7 +120,7 @@ public class StringFieldMapper extends AbstractFieldMapper<String> implements Al
|
||||||
// index options, as probably what the user really wants
|
// index options, as probably what the user really wants
|
||||||
// if they are set explicitly, we will use those values
|
// if they are set explicitly, we will use those values
|
||||||
if (fieldType.indexed() && !fieldType.tokenized()) {
|
if (fieldType.indexed() && !fieldType.tokenized()) {
|
||||||
if (!omitNormsSet) {
|
if (!omitNormsSet && boost == Defaults.BOOST) {
|
||||||
fieldType.setOmitNorms(true);
|
fieldType.setOmitNorms(true);
|
||||||
}
|
}
|
||||||
if (!indexOptionsSet) {
|
if (!indexOptionsSet) {
|
||||||
|
|
Loading…
Reference in New Issue