public class ElasticsearchQueries extends Object
Methods in this class return QueryDescriptors. 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.
payload - The JSON payload as a Stringpublic static QueryDescriptor fromQueryString(String queryStringQuery)
See the official documentation for the query syntax.
queryStringQuery - A query string conforming to the "query string" syntax.Copyright © 2006-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.