mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
since we now take all#enabled into account when checking for include_in_all, there is no need to set it on every mapper
This commit is contained in:
parent
185cd68045
commit
3361a9365b
@ -251,11 +251,6 @@ public class XContentDocumentMapper implements DocumentMapper, ToXContent {
|
|||||||
|
|
||||||
this.typeFilter = new TermFilter(typeMapper().term(type));
|
this.typeFilter = new TermFilter(typeMapper().term(type));
|
||||||
|
|
||||||
// if we are not enabling all, set it to false on the root object, (and on all the rest...)
|
|
||||||
if (!allFieldMapper.enabled()) {
|
|
||||||
this.rootObjectMapper.includeInAll(allFieldMapper.enabled());
|
|
||||||
}
|
|
||||||
|
|
||||||
rootObjectMapper.putMapper(idFieldMapper);
|
rootObjectMapper.putMapper(idFieldMapper);
|
||||||
if (boostFieldMapper != null) {
|
if (boostFieldMapper != null) {
|
||||||
rootObjectMapper.putMapper(boostFieldMapper);
|
rootObjectMapper.putMapper(boostFieldMapper);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user