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

PrefixQuery is missing the equals() method

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: