parent
5a0c1eb195
commit
22b13f5449
|
@ -767,15 +767,22 @@ public class SearchService extends AbstractLifecycleComponent<SearchService> {
|
||||||
if (fieldDataType == null) {
|
if (fieldDataType == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
final String indexName = fieldMapper.names().indexName();
|
|
||||||
if (fieldMapper instanceof ParentFieldMapper) {
|
if (fieldMapper instanceof ParentFieldMapper) {
|
||||||
ParentFieldMapper parentFieldMapper = (ParentFieldMapper) fieldMapper;
|
ParentFieldMapper parentFieldMapper = (ParentFieldMapper) fieldMapper;
|
||||||
if (parentFieldMapper.active()) {
|
if (!parentFieldMapper.active()) {
|
||||||
warmUp.put(indexName, parentFieldMapper);
|
continue;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (fieldDataType.getLoading() != Loading.EAGER) {
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
} else if (fieldDataType.getLoading() != Loading.EAGER && !warmUp.containsKey(indexName)) {
|
|
||||||
warmUp.put(indexName, fieldMapper);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final String indexName = fieldMapper.names().indexName();
|
||||||
|
if (warmUp.containsKey(indexName)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
warmUp.put(indexName, fieldMapper);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
final IndexFieldDataService indexFieldDataService = indexShard.indexFieldDataService();
|
final IndexFieldDataService indexFieldDataService = indexShard.indexFieldDataService();
|
||||||
|
|
Loading…
Reference in New Issue