lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trejkaz <trej...@trypticon.org>
Subject Re: Determine whether a MatchAllQuery or a Query with atleast one Term
Date Mon, 30 Nov 2015 05:24:48 GMT
On Mon, Nov 30, 2015 at 4:15 PM, Sandeep Khanzode
<sandeep_khanzode@yahoo.com.invalid> wrote:
> I want to check whether the net effect of this query (bool or otherwise) is a MatchAllQuery
(i.e. without
> any terms) or a query with at least one term, or numeric range.

Or both.

    *:* OR field:text

The net effect is a MatchAllQuery, *AND* there is at least one term.

TX

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