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

the method equals in ConstantScoreRangeQuery does not compare collator property fully, this bug is similar to LUCENE-1587

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.4
    • 2.9, 2.9.1
    • core/search
    • None
    • New

    Description

      if (this.fieldName != other.fieldName // interned comparison

      this.includeLower != other.includeLower
      this.includeUpper != other.includeUpper
      (this.collator != null && ! this.collator.equals(other.collator))
      ) { return false; }

      If this.collator == null and other.collator is not null. the equals method should return false;
      but in lucene 2.4. the method return true.

      ConstantScoreRangeQuery equals method does not compare collator property fully , this bug is similar to LUCENE-1587
      http://issues.apache.org/jira/browse/LUCENE-1587

      Attachments

        Activity

          People

            uschindler Uwe Schindler
            wdq2001_0001@163.com wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: