fix nocommit
This commit is contained in:
parent
dd0e77e4ec
commit
c57a3c8341
|
@ -106,9 +106,9 @@ public class AllFieldMapper extends AbstractFieldMapper<String> implements Inter
|
||||||
@Override
|
@Override
|
||||||
public AllFieldMapper build(BuilderContext context) {
|
public AllFieldMapper build(BuilderContext context) {
|
||||||
// In case the mapping overrides these
|
// In case the mapping overrides these
|
||||||
// nocommit - this used to setIndex(true) but now we adding back positions, should we set DOCS_ONLY?
|
// TODO: this should be an exception! it doesnt make sense to not index this field
|
||||||
if (fieldType.indexOptions() == IndexOptions.NONE) {
|
if (fieldType.indexOptions() == IndexOptions.NONE) {
|
||||||
fieldType.setIndexOptions(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS);
|
fieldType.setIndexOptions(Defaults.FIELD_TYPE.indexOptions());
|
||||||
}
|
}
|
||||||
fieldType.setTokenized(true);
|
fieldType.setTokenized(true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue