return msearch(query, firstResult, count, group, groupSize, filter, sort).getGsr();
}
public MultiGSR msearch(AQuery query, int firstResult, int count, AGroup group, int groupSize, AFilter filter, ASort sort) {
final QueryParams queryParams = new QueryParams(query, 0, firstResult + count, group, 1, filter, sort);
Execution<GroupedSearchResults> execution= new Execution<GroupedSearchResults>();
for (int i = 0; i < searchers.size(); ++i) {
final int numSearcher = i;
final IRemoteSearcher searcher = searchers.get(numSearcher);
execution.addTask(new CallableWithId<GroupedSearchResults, Integer>(numSearcher) {
public GroupedSearchResults call() throws Exception {
return queryParams.executeInRemoteSearcher(searcher);
}
});
}
multiQueryExecutor.addExecution(execution);