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

QuerySenderListener doesn't populate document cache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.1
    • search
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: