lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <gsing...@apache.org>
Subject Re: [jira] Updated: (LUCENE-2945) Surround Query doesn't properly handle equals/hashcode
Date Sat, 05 Mar 2011 21:21:25 GMT

On Mar 5, 2011, at 3:25 PM, Paul Elschot wrote:

> On Mar 5, 2011, at 9:40 AM, Paul Elschot wrote:
> 
>> What happens is that you actually end up comparing two different objects,
>> one which is the DistanceQuery and one which is the inner class, so it
>> doesn't work.
> 
> Iirc the one with the inner class is a (Lucene) Query, so why compare
> it to a (Surround) DistanceQuery from which it may have been generated?

I wasn't, that's what your patch did ;-)

It's the Lucene Query that matters.  I'm just not sure what the best way to generate the equals/hash
from.

> Never mind, I don't have the source code here...



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


Mime
View raw message