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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org