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

QuerySenderListener doesn't populate document cache

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    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

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment