java.lang.Object
org.elasticsearch.xpack.esql.core.util.Queries

public class Queries extends Object
Utilities for Elasticsearch queries.
  • Constructor Details

    • Queries

      public Queries()
  • Method Details

    • combine

      public static QueryBuilder combine(Queries.Clause clause, List<QueryBuilder> queries)
      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.