lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Lamprecht <clampre...@gmail.com>
Subject RangeQuery doesn't override equals() or hashCode() - intentional?
Date Mon, 11 Apr 2005 08:48:53 GMT
I was attempting to cache QueryFilters in a Map using the Query as the
key (a BooleanQuery instance containing two RangeQueries), and I
discovered that my BooleanQueries' equals() methods would always
return false, even when the queries were equivalent.  The culprit was
RangeQuery - it doesn't implement equals() or hashCode().  Is this
intentional, and if not, can I propose a patch to implement these
methods?  thanks,

Chris

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


Mime
View raw message