[
https://issues.apache.org/jira/browse/LUCENE-1415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638319#action_12638319
]
tfeak edited comment on LUCENE-1415 at 10/9/08 9:31 AM:
------------------------------------------------------------
I've attached a TestCase demonstrating the broken functionality.
I realize that this isn't the standard format. I'm not setup for creating SVN
patches from my current workstation, and I'm in a bit of a crunch. I hope that
this can at least provide some level of assistance in rectifying this situation.
was (Author: tfeak):
TestCase demonstrating the broken functionality.
I realize that this isn't the standard format. I apologize, as this is all I
have time for right now.
> MultiPhraseQuery has incorrect hashCode() implementation - Leads to Solr
> Cache misses
> -------------------------------------------------------------------------------------
>
> Key: LUCENE-1415
> URL: https://issues.apache.org/jira/browse/LUCENE-1415
> Project: Lucene - Java
> Issue Type: Bug
> Components: Search
> Affects Versions: 2.4
> Reporter: Todd Feak
> Attachments: MultiPhraseQueryTest.java
>
>
> I found this while hunting for the cause of Solr Cache misses.
> The MultiPhraseQuery class hashCode() implementation is non-deterministic. It
> uses termArrays.hashCode() in the computation. The contents of that ArrayList
> are actually arrays themselves, which return there reference ID as a hashCode
> instead of returning a hashCode which is based on the contents of the array.
> I would suggest an implementation involving the Arrays.hashCode() method.
> I will try to submit a patch soon, off for today.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]