lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miller (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-1587) RangeQuery equals method does not compare collator property fully
Date Mon, 06 Apr 2009 16:06:13 GMT

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

Mark Miller updated LUCENE-1587:
--------------------------------

    Attachment: LUCENE-1587.patch

> RangeQuery equals method does not compare collator property fully
> -----------------------------------------------------------------
>
>                 Key: LUCENE-1587
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1587
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.4.1
>            Reporter: Mark Platvoet
>            Assignee: Mark Miller
>            Priority: Minor
>             Fix For: 2.9
>
>         Attachments: LUCENE-1587.patch
>
>
> 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

-- 
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message