mirror of https://github.com/apache/lucene.git
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
dac6fe09bb
|
@ -73,6 +73,9 @@ Optimizations
|
||||||
* LUCENE-7235: LRUQueryCache should not take a lock for segments that it will
|
* LUCENE-7235: LRUQueryCache should not take a lock for segments that it will
|
||||||
not cache on anyway. (Adrien Grand)
|
not cache on anyway. (Adrien Grand)
|
||||||
|
|
||||||
|
* LUCENE-7238: Explicitly disable the query cache in MemoryIndex#createSearcher.
|
||||||
|
(Adrien Grand)
|
||||||
|
|
||||||
Bug Fixes
|
Bug Fixes
|
||||||
|
|
||||||
* LUCENE-7127: Fix corner case bugs in GeoPointDistanceQuery. (Robert Muir)
|
* LUCENE-7127: Fix corner case bugs in GeoPointDistanceQuery. (Robert Muir)
|
||||||
|
|
|
@ -666,6 +666,7 @@ public class MemoryIndex {
|
||||||
MemoryIndexReader reader = new MemoryIndexReader();
|
MemoryIndexReader reader = new MemoryIndexReader();
|
||||||
IndexSearcher searcher = new IndexSearcher(reader); // ensures no auto-close !!
|
IndexSearcher searcher = new IndexSearcher(reader); // ensures no auto-close !!
|
||||||
searcher.setSimilarity(normSimilarity);
|
searcher.setSimilarity(normSimilarity);
|
||||||
|
searcher.setQueryCache(null);
|
||||||
return searcher;
|
return searcher;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue