Class Queries
java.lang.Object
org.springframework.data.elasticsearch.client.elc.Queries
Utility class simplifying the creation of some more complex queries and type.
- Since:
- 4.4
- Author:
- Peter-Josef Meisch
-
Method Summary
Modifier and TypeMethodDescriptionstatic BaseQueryBuilder<?,?> static BaseQueryBuilder<?,?> getBuilderWithTermQuery(String field, String value) static QuerygetTermsAggsQuery(String aggsName, String aggsField) static co.elastic.clients.elasticsearch._types.query_dsl.IdsQuerystatic co.elastic.clients.elasticsearch._types.query_dsl.QueryidsQueryAsQuery(List<String> ids) static co.elastic.clients.elasticsearch._types.LatLonGeoLocationlatLon(double lat, double lon) static co.elastic.clients.elasticsearch._types.LatLonGeoLocationstatic co.elastic.clients.elasticsearch._types.query_dsl.MatchAllQuerystatic co.elastic.clients.elasticsearch._types.query_dsl.Querystatic co.elastic.clients.elasticsearch._types.query_dsl.MatchQuerymatchQuery(String fieldName, String query, co.elastic.clients.elasticsearch._types.query_dsl.Operator operator, Float boost) static co.elastic.clients.elasticsearch._types.query_dsl.QuerymatchQueryAsQuery(String fieldName, String query, co.elastic.clients.elasticsearch._types.query_dsl.Operator operator, Float boost) static co.elastic.clients.elasticsearch._types.query_dsl.QueryStringQueryqueryStringQuery(String fieldName, String query, co.elastic.clients.elasticsearch._types.query_dsl.Operator defaultOperator, Float boost) static co.elastic.clients.elasticsearch._types.query_dsl.QueryStringQueryqueryStringQuery(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.QueryStringQueryqueryStringQuery(String fieldName, String query, Boolean analyzeWildcard, Float boost) static co.elastic.clients.elasticsearch._types.query_dsl.QueryStringQueryqueryStringQuery(String fieldName, String query, Float boost) static QueryqueryWithIds(String... ids) static co.elastic.clients.elasticsearch._types.query_dsl.TermQuerystatic co.elastic.clients.elasticsearch._types.query_dsl.QuerytermQueryAsQuery(String fieldName, String value) static co.elastic.clients.elasticsearch._types.query_dsl.WildcardQuerywildcardQuery(String field, String value) static co.elastic.clients.elasticsearch._types.query_dsl.QuerywildcardQueryAsQuery(String field, String value) static co.elastic.clients.elasticsearch._types.query_dsl.WrapperQuerywrapperQuery(String query) static co.elastic.clients.elasticsearch._types.query_dsl.QuerywrapperQueryAsQuery(String query)
-
Method Details
-
idsQuery
-
idsQueryAsQuery
-
matchQuery
-
matchQueryAsQuery
-
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
-
queryStringQuery
-
queryStringQuery
-
queryStringQuery
-
termQuery
-
termQueryAsQuery
-
wildcardQuery
-
wildcardQueryAsQuery
-
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
-
latLon
public static co.elastic.clients.elasticsearch._types.LatLonGeoLocation latLon(double lat, double lon) -
getTermsAggsQuery
-
queryWithIds
-
getBuilderWithMatchAllQuery
-
getBuilderWithTermQuery
-