[jira] Created: (LUCENE-2131) the method equals in ConstantScoreRangeQuery does not compare collator property fully, this bug is similar to LUCENE-1587

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (LUCENE-2131) the method equals in ConstantScoreRangeQuery does not compare collator property fully, this bug is similar to LUCENE-1587

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

                 Key: LUCENE-2131
                 URL: https://issues.apache.org/jira/browse/LUCENE-2131
             Project: Lucene - Java
          Issue Type: Bug
          Components: Search
    Affects Versions: 2.4
            Reporter: wang
            Priority: Minor


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

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (LUCENE-2131) the method equals in ConstantScoreRangeQuery does not compare collator property fully, this bug is similar to LUCENE-1587

Walter (Jira)

     [ https://issues.apache.org/jira/browse/LUCENE-2131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uwe Schindler resolved LUCENE-2131.
-----------------------------------

       Resolution: Duplicate
    Fix Version/s: 2.9
                   2.9.1
         Assignee: Uwe Schindler

This bug is already fixed in 2.9 because fixed by the code of LUCENE-1587.

In 3.0 and later this deprecated class no longer exists.

> the method equals in ConstantScoreRangeQuery does not compare collator property fully, this bug is similar to LUCENE-1587
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-2131
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2131
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.4
>            Reporter: wang
>            Assignee: Uwe Schindler
>            Priority: Minor
>             Fix For: 2.9.1, 2.9
>
>
> 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

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]