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

With a single field, CombinedFieldQuery can score incorrectly

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 8.10
    • None
    • None
    • New

    Description

      When there's only one field, CombinedFieldQuery will ignore its weight while scoring. This makes the scoring inconsistent, since the field weight is supposed to multiply its term frequency.

      This can also come up when searching over multiple fields, when some segment happens to contain only one field. The problem was caught by this test:

      ant test  -Dtestcase=TestCombinedFieldQuery -Dtests.method=testCopyFieldWithMissingFields -Dtests.seed=8FA982798BC8FEF6 -Dtests.nightly=true
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            julietibs Julie Tibshirani
            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 - 50m
                50m