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

RangeQuery equals method does not compare collator property fully

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.1
    • 2.9
    • core/search
    • None
    • New, Patch Available

    Description

      The equals method in the range query has the collator comparison implemented as:
      (this.collator != null && ! this.collator.equals(other.collator))

      When this.collator = null and other.collator = someCollator this method will incorrectly assume they are equal.

      So adding something like

      (this.collator == null && other.collator != null)
      would fix the problem

      Attachments

        1. LUCENE-1587.patch
          2 kB
          Mark Miller

        Activity

          People

            markrmiller@gmail.com Mark Miller
            mplatvoet Mark Platvoet
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: