You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/07/16 17:00:00 UTC

[jira] [Commented] (LUCENE-10026) CombinedFieldQuery has incorrect equals/ hashCode

    [ https://issues.apache.org/jira/browse/LUCENE-10026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17382203#comment-17382203 ] 

ASF subversion and git services commented on LUCENE-10026:
----------------------------------------------------------

Commit b9a70c28b697f85d6ada5eedc5c05f8a6476ae7d in lucene's branch refs/heads/main from Julie Tibshirani
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=b9a70c2 ]

LUCENE-10026: Fix CombinedFieldQuery equals and hashCode (#212)

The previous equals and hashCode methods only compared query terms. This meant
that queries on different fields, or with different field weights, were
considered the same

During boolean query rewrites, duplicate clauses are removed. So because equals/
hashCode was incorrect, rewrites could accidentally drop CombinedFieldQuery
clauses.

> CombinedFieldQuery has incorrect equals/ hashCode
> -------------------------------------------------
>
>                 Key: LUCENE-10026
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10026
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Julie Tibshirani
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The current equals and hashCode methods only compare query terms. This
> meant that queries on different fields, or with different field weights, are
> considered equal.
> During boolean query rewrites, duplicate clauses are removed. So because equals/
> hashCode is incorrect, rewrites can accidentally drop CombinedFieldQuery clauses.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org