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

optimize numDocs(Query,DocSet) when filterCache is null

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.4, 6.0
    • None
    • None

    Description

      getDocSet(Query, DocSet) has this opto, but numDocs does not.

      Especially in this case, where we just want the intersection count, its faster to do a filtered query with TotalHitCountCollector and not create bitsets at all...

      Attachments

        1. SOLR-5002.patch
          2 kB
          Robert Muir

        Activity

          People

            rcmuir Robert Muir
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: