lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Borgermans" <paul.borgerm...@gmail.com>
Subject Re: BooleanQuery question
Date Fri, 21 Jul 2006 14:44:29 GMT
Hi

>you can't have a boolean query containing only MUST_NOT clauses (which is
>what (-(FILE:abstract.htm)) is.  it matches no documents, so the mandatory
>qualification on it causes the query to fail for all docs.

This is true for the search queries, but it makes sense in a query
filter IMHO. I encountered this and had to add a MUST clause on the
Filter with a trivial field in order not to break the Filter returning
zero documents.

Isn't this a conceptual bug in the case of constructing a filter along a query?

Regards

Paul

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