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 Query
getTermsAggsQuery
(String aggsName, String aggsField) static co.elastic.clients.elasticsearch._types.query_dsl.IdsQuery
static co.elastic.clients.elasticsearch._types.query_dsl.Query
idsQueryAsQuery
(List<String> ids) static co.elastic.clients.elasticsearch._types.LatLonGeoLocation
latLon
(double lat, double lon) static co.elastic.clients.elasticsearch._types.LatLonGeoLocation
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 Query
queryWithIds
(String... ids) static co.elastic.clients.elasticsearch._types.query_dsl.TermQuery
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
wildcardQueryAsQuery
(String field, String value) static co.elastic.clients.elasticsearch._types.query_dsl.WrapperQuery
wrapperQuery
(String query) static co.elastic.clients.elasticsearch._types.query_dsl.Query
wrapperQueryAsQuery
(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
-