committed as part of 09aa951

This commit is contained in:
Mike McCandless 2016-03-02 09:05:41 -05:00 committed by Noble Paul
parent 54e827e9b6
commit 4570ae8001
1 changed files with 4 additions and 9 deletions

View File

@ -376,15 +376,10 @@ public class SearchHandler extends RequestHandlerBase implements SolrCoreAware ,
// for distributed queries that don't include shards.qt, use the original path
// as the default but operators need to update their luceneMatchVersion to enable
// this behavior since it did not work this way prior to 5.1
if (req.getCore().getSolrConfig().luceneMatchVersion.onOrAfter(Version.LUCENE_5_1_0)) {
String reqPath = (String) req.getContext().get(PATH);
if (!"/select".equals(reqPath)) {
params.set(CommonParams.QT, reqPath);
} // else if path is /select, then the qt gets passed thru if set
} else {
// this is the pre-5.1 behavior, which translates to sending the shard request to /select
params.remove(CommonParams.QT);
}
String reqPath = (String) req.getContext().get(PATH);
if (!"/select".equals(reqPath)) {
params.set(CommonParams.QT, reqPath);
} // else if path is /select, then the qt gets passed thru if set
}
shardHandler1.submit(sreq, shard, params, rb.preferredHostAddress);
}