[jira] [Updated] (LUCENE-5502) equals method of TermsFilter might equate two different filters

2014-03-24 Thread Steve Rowe (JIRA)

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

Steve Rowe updated LUCENE-5502:
---

Fix Version/s: 5.0

 equals method of TermsFilter might equate two different filters
 ---

 Key: LUCENE-5502
 URL: https://issues.apache.org/jira/browse/LUCENE-5502
 Project: Lucene - Core
  Issue Type: Bug
  Components: core/query/scoring
Affects Versions: 4.7
Reporter: Igor Motov
Assignee: Adrien Grand
 Fix For: 4.8, 5.0, 4.7.1

 Attachments: LUCENE-5502.patch, LUCENE-5502.patch, LUCENE-5502.patch


 If two terms filters have 1) the same number of terms, 2) use the same field 
 in all these terms and 3) term values happened to have the same hash codes, 
 these two filter are considered to be equal as long as the first term is the 
 same in both filters.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-5502) equals method of TermsFilter might equate two different filters

2014-03-10 Thread Igor Motov (JIRA)

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

Igor Motov updated LUCENE-5502:
---

Attachment: LUCENE-5502.patch

Updated patch with ArrayUtil.equals

 equals method of TermsFilter might equate two different filters
 ---

 Key: LUCENE-5502
 URL: https://issues.apache.org/jira/browse/LUCENE-5502
 Project: Lucene - Core
  Issue Type: Bug
  Components: core/query/scoring
Affects Versions: 4.7
Reporter: Igor Motov
 Attachments: LUCENE-5502.patch, LUCENE-5502.patch, LUCENE-5502.patch


 If two terms filters have 1) the same number of terms, 2) use the same field 
 in all these terms and 3) term values happened to have the same hash codes, 
 these two filter are considered to be equal as long as the first term is the 
 same in both filters.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-5502) equals method of TermsFilter might equate two different filters

2014-03-09 Thread Igor Motov (JIRA)

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

Igor Motov updated LUCENE-5502:
---

Attachment: LUCENE-5502.patch

Thanks Adrien. You are right, I missed offsets. Here is an updated version. I 
cannot use Arrays.equals for termsBytes and offsets because we compare only 
parts of the arrays, but I can switch to ArrayUtil.equals if you think it would 
make more sense.

 equals method of TermsFilter might equate two different filters
 ---

 Key: LUCENE-5502
 URL: https://issues.apache.org/jira/browse/LUCENE-5502
 Project: Lucene - Core
  Issue Type: Bug
  Components: core/query/scoring
Affects Versions: 4.7
Reporter: Igor Motov
 Attachments: LUCENE-5502.patch, LUCENE-5502.patch


 If two terms filters have 1) the same number of terms, 2) use the same field 
 in all these terms and 3) term values happened to have the same hash codes, 
 these two filter are considered to be equal as long as the first term is the 
 same in both filters.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-5502) equals method of TermsFilter might equate two different filters

2014-03-07 Thread Igor Motov (JIRA)

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

Igor Motov updated LUCENE-5502:
---

Attachment: LUCENE-5502.patch

Test and patch for the issue.

 equals method of TermsFilter might equate two different filters
 ---

 Key: LUCENE-5502
 URL: https://issues.apache.org/jira/browse/LUCENE-5502
 Project: Lucene - Core
  Issue Type: Bug
  Components: core/query/scoring
Affects Versions: 4.7
Reporter: Igor Motov
 Attachments: LUCENE-5502.patch


 If two terms filters have 1) the same number of terms, 2) use the same field 
 in all these terms and 3) term values happened to have the same hash codes, 
 these two filter are considered to be equal as long as the first term is the 
 same in both filters.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org