Class BoolQuery
java.lang.Object
org.elasticsearch.xpack.esql.core.querydsl.query.Query
org.elasticsearch.xpack.esql.core.querydsl.query.BoolQuery
Query representing boolean AND or boolean OR.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConvert to an ElasticsearchQueryBuilderall set up to execute the query.booleaninthashCode()protected StringUsed byQuery.toString()to produce a pretty string.booleanisAnd()Negate this query, returning a query that includes documents that would returnfalsewhen running the represented operation.queries()
-
Constructor Details
-
BoolQuery
-
BoolQuery
-
-
Method Details
-
asBuilder
Description copied from class:QueryConvert to an ElasticsearchQueryBuilderall set up to execute the query. -
isAnd
public boolean isAnd() -
queries
-
hashCode
public int hashCode() -
equals
-
innerToString
Description copied from class:QueryUsed byQuery.toString()to produce a pretty string.- Specified by:
innerToStringin classQuery
-
negate
Description copied from class:QueryNegate this query, returning a query that includes documents that would returnfalsewhen running the represented operation. The default implementation just returns aNotQuerywrappingthisbecause most queries don't model underlying operations that can returnnull. Queries that model expressions that can returnnullmust make sure all documents that would returnnullare still excluded from the match.
-