mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 09:54:06 -04:00
fix nocommit
This commit is contained in:
parent
dd0e77e4ec
commit
c57a3c8341
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue