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

PrefixQuery is missing the equals() method

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9
    • 1.9
    • None
    • None

    Description

      The PrefixQuery is inheriting the java.lang.Object's object default equals method. This makes it hard to have test working of PrefixFilter or any other task requiring equals to work proerply (insertion in Set, etc.). The equal method should be very similar, not to say identical except for class casting, to the equals() of TermQuery.

      Attachments

        1. PrefixQuery.java
          3 kB
          Guillaume Blain

        Activity

          People

            Unassigned Unassigned
            blaingu Guillaume Blain
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: