Class Queries
java.lang.Object
org.elasticsearch.xpack.esql.core.util.Queries
Utilities for Elasticsearch queries.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryBuildercombine(Queries.Clause clause, List<QueryBuilder> queries) Combines the given queries while attempting to NOT create a new bool query and avoid unnecessary nested queries.
-
Constructor Details
-
Queries
public Queries()
-
-
Method Details
-
combine
Combines the given queries while attempting to NOT create a new bool query and avoid unnecessary nested queries. The method tries to detect if the first query is a bool query - if that is the case it will reuse that for adding the rest of the clauses.
-