You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2016/04/21 17:04:20 UTC
[2/2] lucene-solr:branch_6x: LUCENE-7238: Explicitly disable the
query cache in MemoryIndex.createSearcher.
LUCENE-7238: Explicitly disable the query cache in MemoryIndex.createSearcher.
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/ee7f91d7
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/ee7f91d7
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/ee7f91d7
Branch: refs/heads/branch_6x
Commit: ee7f91d7749d359d41996c1aa68788511dcaec10
Parents: 7639abc
Author: Adrien Grand <jp...@gmail.com>
Authored: Thu Apr 21 17:01:43 2016 +0200
Committer: Adrien Grand <jp...@gmail.com>
Committed: Thu Apr 21 17:02:31 2016 +0200
----------------------------------------------------------------------
lucene/CHANGES.txt | 3 +++
.../src/java/org/apache/lucene/index/memory/MemoryIndex.java | 1 +
2 files changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/ee7f91d7/lucene/CHANGES.txt
----------------------------------------------------------------------
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 3a4b4cd..1be2c80 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -66,6 +66,9 @@ Optimizations
* LUCENE-7235: LRUQueryCache should not take a lock for segments that it will
not cache on anyway. (Adrien Grand)
+* LUCENE-7238: Explicitly disable the query cache in MemoryIndex#createSearcher.
+ (Adrien Grand)
+
Bug Fixes
* LUCENE-7127: Fix corner case bugs in GeoPointDistanceQuery. (Robert Muir)
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/ee7f91d7/lucene/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java
----------------------------------------------------------------------
diff --git a/lucene/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java b/lucene/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java
index 58a1017..5b13301 100644
--- a/lucene/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java
+++ b/lucene/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java
@@ -666,6 +666,7 @@ public class MemoryIndex {
MemoryIndexReader reader = new MemoryIndexReader();
IndexSearcher searcher = new IndexSearcher(reader); // ensures no auto-close !!
searcher.setSimilarity(normSimilarity);
+ searcher.setQueryCache(null);
return searcher;
}