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:
Mark Robert Miller 2012-01-31 18:54:56 +00:00
parent f733000e0f
commit a4591b1f05
1 changed files with 4 additions and 0 deletions

View File

@ -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() { }