Solr
  1. Solr
  2. SOLR-3992

QuerySenderListener doesn't populate document cache

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

        Activity

        Hide
        Yonik Seeley added a comment -

        Committed fix to 4x and trunk. Thanks Shotaro!

        Show
        Yonik Seeley added a comment - Committed fix to 4x and trunk. Thanks Shotaro!
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Yonik Seeley
        http://svn.apache.org/viewvc?view=revision&revision=1402390

        SOLR-3992: QuerySenderListener doesn't populate document cache

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Yonik Seeley http://svn.apache.org/viewvc?view=revision&revision=1402390 SOLR-3992 : QuerySenderListener doesn't populate document cache

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development