parent
5a0c1eb195
commit
22b13f5449
|
@ -767,17 +767,24 @@ public class SearchService extends AbstractLifecycleComponent<SearchService> {
|
|||
if (fieldDataType == null) {
|
||||
continue;
|
||||
}
|
||||
final String indexName = fieldMapper.names().indexName();
|
||||
if (fieldMapper instanceof ParentFieldMapper) {
|
||||
ParentFieldMapper parentFieldMapper = (ParentFieldMapper) fieldMapper;
|
||||
if (parentFieldMapper.active()) {
|
||||
warmUp.put(indexName, parentFieldMapper);
|
||||
if (!parentFieldMapper.active()) {
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
if (fieldDataType.getLoading() != Loading.EAGER) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
final String indexName = fieldMapper.names().indexName();
|
||||
if (warmUp.containsKey(indexName)) {
|
||||
continue;
|
||||
}
|
||||
} else if (fieldDataType.getLoading() != Loading.EAGER && !warmUp.containsKey(indexName)) {
|
||||
warmUp.put(indexName, fieldMapper);
|
||||
}
|
||||
}
|
||||
}
|
||||
final IndexFieldDataService indexFieldDataService = indexShard.indexFieldDataService();
|
||||
final Executor executor = threadPool.executor(executor());
|
||||
final CountDownLatch latch = new CountDownLatch(context.newSearcher().reader().leaves().size() * warmUp.size());
|
||||
|
|
Loading…
Reference in New Issue