public class ElasticsearchQueries extends Object
Methods in this class return QueryDescriptor
s. See QueryDescriptor
's
javadoc for more information about how to use it.
Modifier and Type | Method and Description |
---|---|
static QueryDescriptor |
fromJson(String payload)
Creates an Elasticsearch query from the given JSON payload for the Elasticsearch Search API.
|
static QueryDescriptor |
fromQueryString(String queryStringQuery)
Creates an Elasticsearch query from the given Query String Query, as e.g.
|
public static QueryDescriptor fromJson(String payload)
Note that only the 'query' attribute is supported.
See the official documentation for the complete payload syntax.
public static QueryDescriptor fromQueryString(String queryStringQuery)
See the official documentation for the query syntax.
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved