lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: need some advice/help with negative query.
Date Fri, 06 Jan 2006 22:31:40 GMT

On Jan 6, 2006, at 2:57 PM, Yonik Seeley wrote:
> Should we should detect the case of all negative clauses and throw in
> a MatchAllDocsQuery?
>
> I guess this would be done in the QueryParser, but one could also make
> a case for doing it in the BooleanQuery.

In a  custom (non-generalizable) query parser that I've built, I  
detect a negative only query and then nest it within a BooleanQuery  
with a MatchAllDocsQuery.

	Erik


---------------------------------------------------------------------
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