Ricardo Merizalde created SOLR-4627:
---------------------------------------
Summary: Warmup queries don't work for grouping
Key: SOLR-4627
URL: https://issues.apache.org/jira/browse/SOLR-4627
Project: Solr
Issue Type: Bug
Components: search
Affects Versions: 4.1
Reporter: Ricardo Merizalde
Priority: Minor
Fix For: 4.1
When setting queries with the option group=true class QuerySenderListener
doesn't process the document list. Hence, caches are not warmed.
This can be fixed easily by updating the following to process GroupResponses
// Retrieve the Document instances (not just the ids) to warm
// the OS disk cache, and any Solr document cache. Only the top
// level values in the NamedList are checked for DocLists.
NamedList values = rsp.getValues();
for (int i=0; i<values.size(); i++) {
Object o = values.getVal(i);
if (o instanceof ResultContext) {
o = ((ResultContext)o).docs;
}
if (o instanceof DocList) {
DocList docs = (DocList)o;
for (DocIterator iter = docs.iterator(); iter.hasNext();) {
newSearcher.doc(iter.nextDoc());
}
}
}
I will work on a patch for this
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]