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.
-
Field Summary
Fields inherited from class org.elasticsearch.xpack.esql.core.querydsl.query.Query
NO_SCORE_BOOST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected QueryBuilderUsed internally to convert to retrieve aQueryBuilderby queries.booleanDoes the result of callingQuery.asBuilder()need the plan to serialize itself?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()booleanscorable()Defines whether a query should contribute to the overall scoreMethods inherited from class org.elasticsearch.xpack.esql.core.querydsl.query.Query
source, toQueryBuilder, toString, unscore
-
Constructor Details
-
BoolQuery
-
BoolQuery
-
-
Method Details
-
asBuilder
Description copied from class:QueryUsed internally to convert to retrieve aQueryBuilderby queries. -
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. -
scorable
public boolean scorable()Description copied from class:QueryDefines whether a query should contribute to the overall score -
containsPlan
public boolean containsPlan()Description copied from class:QueryDoes the result of callingQuery.asBuilder()need the plan to serialize itself?- Specified by:
containsPlanin classQuery
-