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

CollapsingQParserPlugin should not run scorer for documents not eligible for collapsing

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.0, master (9.0)
    • Fix Version/s: 8.1
    • Component/s: search
    • Labels:
      None

      Description

      CollapsingQParserPlugin should not run scorer for documents not eligible for collapsing (in cases when score is not needed for collapsing operation) but only for the result sorting, decoration of result fields or boosting.

       

      Performance improvement example:

      2_000_000 documents collapsed by sort without score to 130_000 then sorted by score improved from 4300ms to 2700ms

       

      I am attaching patch on master branch. 

       

       

        Attachments

        1. SOLR-13348.patch
          21 kB
          Andrzej Wislowski

          Activity

            People

            • Assignee:
              ichattopadhyaya Ishan Chattopadhyaya
              Reporter:
              awislowski Andrzej Wislowski
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: