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

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

    Modifier and Type
    Method
    Description
    static co.elastic.clients.elasticsearch._types.query_dsl.IdsQuery
     
    static co.elastic.clients.elasticsearch._types.query_dsl.Query
     
    static co.elastic.clients.elasticsearch._types.LatLonGeoLocation
    latLon(double lat, double lon)
     
    static co.elastic.clients.elasticsearch._types.LatLonGeoLocation
    latLon(GeoPoint geoPoint)
     
    static co.elastic.clients.elasticsearch._types.query_dsl.MatchAllQuery
     
    static co.elastic.clients.elasticsearch._types.query_dsl.Query
     
    static co.elastic.clients.elasticsearch._types.query_dsl.MatchQuery
    matchQuery(String fieldName, String query, co.elastic.clients.elasticsearch._types.query_dsl.Operator operator, Float boost)
     
    static co.elastic.clients.elasticsearch._types.query_dsl.Query
    matchQueryAsQuery(String fieldName, String query, co.elastic.clients.elasticsearch._types.query_dsl.Operator operator, Float boost)
     
    static co.elastic.clients.elasticsearch._types.query_dsl.QueryStringQuery
    queryStringQuery(String fieldName, String query, co.elastic.clients.elasticsearch._types.query_dsl.Operator defaultOperator, Float boost)
     
    static co.elastic.clients.elasticsearch._types.query_dsl.QueryStringQuery
    queryStringQuery(String fieldName, String query, Boolean analyzeWildcard, co.elastic.clients.elasticsearch._types.query_dsl.Operator defaultOperator, Float boost)
     
    static co.elastic.clients.elasticsearch._types.query_dsl.QueryStringQuery
    queryStringQuery(String fieldName, String query, Boolean analyzeWildcard, Float boost)
     
    static co.elastic.clients.elasticsearch._types.query_dsl.QueryStringQuery
    queryStringQuery(String fieldName, String query, Float boost)
     
    static co.elastic.clients.elasticsearch._types.query_dsl.TermQuery
    termQuery(String fieldName, String value)
     
    static co.elastic.clients.elasticsearch._types.query_dsl.Query
    termQueryAsQuery(String fieldName, String value)
     
    static co.elastic.clients.elasticsearch._types.query_dsl.WildcardQuery
    wildcardQuery(String field, String value)
     
    static co.elastic.clients.elasticsearch._types.query_dsl.Query
     
    static co.elastic.clients.elasticsearch._types.query_dsl.WrapperQuery
     
    static co.elastic.clients.elasticsearch._types.query_dsl.Query
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)