Merge remote-tracking branch 'origin/master'

This commit is contained in:
Noble Paul 2016-04-21 20:38:43 +05:30
commit dac6fe09bb
2 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,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)

View File

@ -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;
}