Re: Solr QueryResultKey hashCode() and equals()

2011-08-17 Thread Chris Hostetter
: with cache warming in Solr I found that the order of the Query objects : within the filters list makes a difference to the equals() and hashCode() : methods. ... : I found that it resulted in a cache miss for two queries that have the same : results just because the filters had a

Re: Solr QueryResultKey hashCode() and equals()

2011-08-17 Thread Neil Prosser
I've opened SOLR-2716 (https://issues.apache.org/jira/browse/SOLR-2716). Would it be possible to use a custom class or List implementation which generates a hash code in such a way that the order they are combined makes no difference? The change only really needs to effect whether a key is

Re: Solr QueryResultKey hashCode() and equals()

2011-08-17 Thread Chris Hostetter
: Would it be possible to use a custom class or List implementation which : generates a hash code in such a way that the order they are combined makes : no difference? The change only really needs to effect whether a key is : selected from the cache rather than altering the order of the filters.