mirror of https://github.com/apache/lucene.git
SOLR-3081: default warming queries to distrib=false
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1238744 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f733000e0f
commit
a4591b1f05
|
@ -49,6 +49,10 @@ public class QuerySenderListener extends AbstractSolrEventListener {
|
|||
try {
|
||||
// bind the request to a particular searcher (the newSearcher)
|
||||
NamedList params = addEventParms(currentSearcher, nlst);
|
||||
// for this, we default to distrib = false
|
||||
if (params.get("distrib") == null) {
|
||||
params.add("distrib", false);
|
||||
}
|
||||
req = new LocalSolrQueryRequest(core,params) {
|
||||
@Override public SolrIndexSearcher getSearcher() { return searcher; }
|
||||
@Override public void close() { }
|
||||
|
|
Loading…
Reference in New Issue