lucene-java-user mailing list archives

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

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



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message