Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-9393

FunctionScoreQuery shouldn’t use TOP_DOCS for creating inner weight

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: master (9.0), 8.6
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      FunctionScoreQuery.createWeight creates the weight of the inner query using the scoreMode from it’s input parameter, however, FunctionScoreQuery can’t really use WAND algorithm, and the Scorer used will ignore calls to set competitive scores. FunctionScoreQuery should just turn TOP_DOCS to COMPLETE before creating the inner query's weight.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tflobbe Tomas Eduardo Fernandez Lobbe
                Reporter:
                tflobbe Tomas Eduardo Fernandez Lobbe
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m