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

CombinedFieldQuery has incorrect equals/ hashCode

Details

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

    Description

      The current equals and hashCode methods only compare query terms. This
      meant that queries on different fields, or with different field weights, are
      considered equal.

      During boolean query rewrites, duplicate clauses are removed. So because equals/
      hashCode is incorrect, rewrites can accidentally drop CombinedFieldQuery clauses.

      Attachments

        Issue Links

          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 - 40m
                  40m