You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Grant Ingersoll <gs...@apache.org> on 2011/03/01 18:40:45 UTC

Surround Queries and hash()/equals()

I've been looking into the surround query parser and it's query implementations and am having issues that seem to point to improper hashcode/equals implementations for the anonymous inner classes that actually create a real Query object.  For instance, lines 76-88 in DistanceQuery (branch 3.x).  The problem manifests itself when you try to hook it into Solr and you don't get the expected results b/c all queries are hashing to the same value in the query result cache.

I'm not sure who wrote this (Paul E, I think), but perhaps someone else might have some insight into this, as I haven't used them at all.  At any rate, I'll open a issue, but if anyone who is more familiar w/ the code can take a look, I'd appreciate it.

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