lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Goller <gol...@detego-software.de>
Subject Re: equals() is implemented in some Querys only
Date Thu, 21 Oct 2004 17:07:51 GMT
Daniel Naber schrieb:
> Hi,
> 
> what's the reason that e.g. PhraseQuery implements equals, but FuzzyQuery 
> doesn't? Could this become a problem in some situations?
> 
> Regards
>  Daniel
> 

I don't think there is a reason for this and I think all Queries should
implement equals and hashCode.

It seems that Lucene itself currently does not use equals for
Queries. Applications outside could need it, e.g. for storing a cache
of queries.

Christoph


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


Mime
View raw message