RangeQuery doesn't override equals() or hashCode() - intentional?

2005-04-11 Thread Chris Lamprecht
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 impl

Re: RangeQuery doesn't override equals() or hashCode() - intentional?

2005-04-11 Thread Erik Hatcher
On Apr 11, 2005, at 4:48 AM, Chris Lamprecht wrote: 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 equiv