use shards.qt as the qt for subqueries

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@652571 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2008-05-01 16:40:47 +00:00
parent dd8974c32f
commit 68b8d7cf7f
1 changed files with 6 additions and 0 deletions

View File

@ -212,6 +212,12 @@ public class SearchHandler extends RequestHandlerBase implements SolrCoreAware
params.remove("indent");
params.remove("echoParams");
params.set("isShard", true); // a sub (shard) request
String shardHandler = req.getParams().get("shards.qt");
if (shardHandler == null) {
params.remove("qt");
} else {
params.set("qt", shardHandler);
}
comm.submit(sreq, shard, params);
}
}