[ https://issues.apache.org/jira/browse/LUCENE-1481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Uwe Schindler updated LUCENE-1481: ---------------------------------- Attachment: LUCENE-1481.patch Attached the patch that extends Sort and SortField by a hashCode and equals > Sort and SortField does not have equals() and hashCode() > -------------------------------------------------------- > > Key: LUCENE-1481 > URL: https://issues.apache.org/jira/browse/LUCENE-1481 > Project: Lucene - Java > Issue Type: Bug > Components: Query/Scoring > Affects Versions: 2.4 > Reporter: Uwe Schindler > Assignee: Michael McCandless > Attachments: LUCENE-1481.patch > > > During developing for my project panFMP I had the following issue: > I have a cache for queries (like Solr has, too) for query results. This > cache also uses the Sort/SortField as key into the cache. The problem is, > because Sort/SortField does not implement equals() and hashCode(), you cannot > store them as cache keys. To workaround, currently I use Sort.toString() as > cache key, but this is not so nice. > In corelation with issue LUCENE-1478, I could fix this there in one patch > together with the other improvements. -- 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]