Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-3992

QuerySenderListener doesn't populate document cache

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: search
    • Labels:
      None

      Description

      QuerySenderListner class can be used to populate cache on startup of solr (firstSearcher event). The code looks trying to populate document cache also. But it doesn't.

              NamedList values = rsp.getValues();
              for (int i=0; i<values.size(); i++) {
                Object o = values.getVal(i);
                if (o instanceof DocList) {
      

      It is because value of response object uses ResultContext object to store document list, not DocList object.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              skamio Shotaro Kamio
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: