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

Wrong number of matches is returned when group cache limit is exceeded and some results are filtered by a post filter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.3.1
    • None
    • search
    • None

    Description

      When the group cache limit is exceeded (see the warning "The grouping cache is active, but not used because it exceeded the max cache limit of %d percent" at the Grouping class), and some of the results are filtered by a post filter, the number of matches at the response is wrong (doesn't take the post filter into account).

      Seems like this can be fixed if the following lines are added after the warning and before searchWithTimeLimiter:
      if (pf.postFilter != null)

      { pf.postFilter.setLastDelegate(secondPhaseCollectors); secondPhaseCollectors = pf.postFilter; }

      (because exceeding the cache limit should work exactly as working with no cache at all)

      Attachments

        Activity

          People

            Unassigned Unassigned
            erezmk@gmail.com Erez Michalak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: