LUCENE-6303: Do not cache filters twice in SolrIndexSearcher.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662914 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2015-02-28 10:29:23 +00:00
parent cf39112477
commit 68f87360dd
1 changed files with 3 additions and 0 deletions

View File

@ -301,6 +301,9 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable,SolrIn
fieldNames.add(fieldInfo.name);
}
// We already have our own filter cache
setQueryCache(null);
// do this at the end since an exception in the constructor means we won't close
numOpens.incrementAndGet();
}