Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 83014 invoked from network); 16 Mar 2011 08:29:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Mar 2011 08:29:58 -0000 Received: (qmail 76274 invoked by uid 500); 16 Mar 2011 08:29:57 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 76208 invoked by uid 500); 16 Mar 2011 08:29:57 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 76201 invoked by uid 99); 16 Mar 2011 08:29:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2011 08:29:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2011 08:29:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8ABF73ABA9A for ; Wed, 16 Mar 2011 08:29:29 +0000 (UTC) Date: Wed, 16 Mar 2011 08:29:29 +0000 (UTC) From: "Paul Elschot (JIRA)" To: dev@lucene.apache.org Message-ID: <1951558952.6109.1300264169565.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1922423681.5582.1299002437893.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Issue Comment Edited: (LUCENE-2945) Surround Query doesn't properly handle equals/hashcode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-2945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13007381#comment-13007381 ] Paul Elschot edited comment on LUCENE-2945 at 3/16/11 8:27 AM: --------------------------------------------------------------- Basically the 2945d patch of 16 March 2011 is a refactoring of the 2945c patch. The static inner classes have been moved to package private classes, and their common function was moved to a new super class. Also a few more test cases were added. Test cases for testing not equals might be still be added, but I don't see a real need to do that. As this adds handling equals/hashcode and has hardly any redundancy, I think this is close to committable. The patch also deprecates a compare..() method, I don't know whether the comments there are to the point. was (Author: paul.elschot@xs4all.nl): Basically the 2945d patch of 16 March 2011 is a refactoring of the 2945c patch. The static inner classes have been moved to package private classes, and their common function was moved to a new super class. Also a few more test cases were added. Test cases for testing not equals might be still be added, but I don't see a real need to do that. As this adds handling equals/hashcode and has hardly any redundancy, I think this is committable. > Surround Query doesn't properly handle equals/hashcode > ------------------------------------------------------ > > Key: LUCENE-2945 > URL: https://issues.apache.org/jira/browse/LUCENE-2945 > Project: Lucene - Java > Issue Type: Bug > Affects Versions: 3.0.3, 3.1, 4.0 > Reporter: Grant Ingersoll > Assignee: Grant Ingersoll > Priority: Minor > Fix For: 3.1.1, 4.0 > > Attachments: LUCENE-2945-partial1.patch, LUCENE-2945.patch, LUCENE-2945.patch, LUCENE-2945.patch, LUCENE-2945c.patch, LUCENE-2945d.patch > > > In looking at using the surround queries with Solr, I am hitting issues caused by collisions due to equals/hashcode not being implemented on the anonymous inner classes that are created by things like DistanceQuery (branch 3.x, near line 76) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org