java.lang.Object
org.springframework.data.elasticsearch.client.elc.Queries

public final class Queries extends Object
Utility class simplifying the creation of some more complex queries and type.
Since:
4.4
Author:
Peter-Josef Meisch
  • Method Details

    • idsQuery

      public static co.elastic.clients.elasticsearch._types.query_dsl.IdsQuery idsQuery(List<String> ids)
    • idsQueryAsQuery

      public static co.elastic.clients.elasticsearch._types.query_dsl.Query idsQueryAsQuery(List<String> ids)
    • matchQuery

      public static co.elastic.clients.elasticsearch._types.query_dsl.MatchQuery matchQuery(String fieldName, String query, @Nullable co.elastic.clients.elasticsearch._types.query_dsl.Operator operator, @Nullable Float boost)
    • matchQueryAsQuery

      public static co.elastic.clients.elasticsearch._types.query_dsl.Query matchQueryAsQuery(String fieldName, String query, @Nullable co.elastic.clients.elasticsearch._types.query_dsl.Operator operator, @Nullable Float boost)
    • matchAllQuery

      public static co.elastic.clients.elasticsearch._types.query_dsl.MatchAllQuery matchAllQuery()
    • matchAllQueryAsQuery

      public static co.elastic.clients.elasticsearch._types.query_dsl.Query matchAllQueryAsQuery()
    • queryStringQuery

      public static co.elastic.clients.elasticsearch._types.query_dsl.QueryStringQuery queryStringQuery(String fieldName, String query, @Nullable Float boost)
    • queryStringQuery

      public static co.elastic.clients.elasticsearch._types.query_dsl.QueryStringQuery queryStringQuery(String fieldName, String query, co.elastic.clients.elasticsearch._types.query_dsl.Operator defaultOperator, @Nullable Float boost)
    • queryStringQuery

      public static co.elastic.clients.elasticsearch._types.query_dsl.QueryStringQuery queryStringQuery(String fieldName, String query, @Nullable Boolean analyzeWildcard, @Nullable Float boost)
    • queryStringQuery

      public static co.elastic.clients.elasticsearch._types.query_dsl.QueryStringQuery queryStringQuery(String fieldName, String query, @Nullable Boolean analyzeWildcard, @Nullable co.elastic.clients.elasticsearch._types.query_dsl.Operator defaultOperator, @Nullable Float boost)
    • termQuery

      public static co.elastic.clients.elasticsearch._types.query_dsl.TermQuery termQuery(String fieldName, String value)
    • termQueryAsQuery

      public static co.elastic.clients.elasticsearch._types.query_dsl.Query termQueryAsQuery(String fieldName, String value)
    • wildcardQuery

      public static co.elastic.clients.elasticsearch._types.query_dsl.WildcardQuery wildcardQuery(String field, String value)
    • wildcardQueryAsQuery

      public static co.elastic.clients.elasticsearch._types.query_dsl.Query wildcardQueryAsQuery(String field, String value)
    • wrapperQueryAsQuery

      public static co.elastic.clients.elasticsearch._types.query_dsl.Query wrapperQueryAsQuery(String query)
    • wrapperQuery

      public static co.elastic.clients.elasticsearch._types.query_dsl.WrapperQuery wrapperQuery(String query)
    • latLon

      public static co.elastic.clients.elasticsearch._types.LatLonGeoLocation latLon(GeoPoint geoPoint)
    • latLon

      public static co.elastic.clients.elasticsearch._types.LatLonGeoLocation latLon(double lat, double lon)
    • getTermsAggsQuery

      public static Query getTermsAggsQuery(String aggsName, String aggsField)
    • queryWithIds

      public static Query queryWithIds(String... ids)
    • getBuilderWithMatchAllQuery

      public static BaseQueryBuilder<?,?> getBuilderWithMatchAllQuery()
    • getBuilderWithTermQuery

      public static BaseQueryBuilder<?,?> getBuilderWithTermQuery(String field, String value)