lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ricardo Merizalde (JIRA)" <>
Subject [jira] [Created] (SOLR-4627) Warmup queries don't work for grouping
Date Thu, 21 Mar 2013 23:01:16 GMT
Ricardo Merizalde created SOLR-4627:

             Summary: Warmup queries don't work for grouping
                 Key: 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();) {

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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message