set query cache to null

This commit is contained in:
Martijn van Groningen 2015-09-10 15:18:42 +02:00
parent c10f116a84
commit a0fea6d365
1 changed files with 1 additions and 0 deletions

View File

@ -223,6 +223,7 @@ public class HasChildQueryParser implements QueryParser {
@Override
public Query rewrite(IndexReader reader) throws IOException {
IndexSearcher indexSearcher = new IndexSearcher(reader);
indexSearcher.setQueryCache(null);
String joinField = ParentFieldMapper.joinField(parentType);
IndexParentChildFieldData indexParentChildFieldData = parentChildIndexFieldData.loadGlobal(indexSearcher.getIndexReader());
MultiDocValues.OrdinalMap ordinalMap = ParentChildIndexFieldData.getOrdinalMap(indexParentChildFieldData, parentType);