From 68f87360ddae259e6f9a5cca8a3aeaf49102119f Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Sat, 28 Feb 2015 10:29:23 +0000 Subject: [PATCH] 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 --- .../src/java/org/apache/solr/search/SolrIndexSearcher.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java b/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java index 3d6d5bdbcf7..ea00930e6ed 100644 --- a/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java +++ b/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java @@ -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(); }