mirror of https://github.com/apache/lucene.git
SOLR-1117 -- QueryElevationComponent should call core.getNewestSearcher(false) instead of core.getNewestSearcher(true)
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@765557 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
49a83c536e
commit
c6b077ee4c
|
@ -187,7 +187,7 @@ public class QueryElevationComponent extends SearchComponent implements SolrCore
|
||||||
// preload the first data
|
// preload the first data
|
||||||
RefCounted<SolrIndexSearcher> searchHolder = null;
|
RefCounted<SolrIndexSearcher> searchHolder = null;
|
||||||
try {
|
try {
|
||||||
searchHolder = core.getNewestSearcher(true);
|
searchHolder = core.getNewestSearcher(false);
|
||||||
IndexReader reader = searchHolder.get().getReader();
|
IndexReader reader = searchHolder.get().getReader();
|
||||||
getElevationMap( reader, core );
|
getElevationMap( reader, core );
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in New Issue