@ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public class QueryStringQuery extends Object implements SearchQuery
| Constructor and Description |
|---|
QueryStringQuery(Collection<String> fieldNames,
String query,
BooleanOperator operator)
Deprecated.
Please use
QueryStringQuery#QueryStringQuery(HasWellFormedQuerySyntax, Collection, BooleanOperator) instead. |
QueryStringQuery(QueryTypeClassifier.Result.HasWellFormedQuerySyntax wellFormedQuery,
Collection<String> fieldNames,
BooleanOperator operator)
Constructs a query that uses advanced query syntax.
|
QueryStringQuery(String query,
Collection<String> fieldNames,
BooleanOperator operator)
Deprecated.
Please use
QueryStringQuery#QueryStringQuery(HasWellFormedQuerySyntax, Collection, BooleanOperator) instead.
The support for alternative query is kept due to cyclic dependency and will be remove immediately
when all usages of this in bundled plugins have been removed. |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getFieldNames() |
String |
getKey() |
BooleanOperator |
getOperator() |
List<?> |
getParameters()
List of parameters as
Strings or SearchQuerys. |
String |
getQuery() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexpandpublic static final String KEY
@Deprecated @Internal public QueryStringQuery(String query, Collection<String> fieldNames, BooleanOperator operator)
QueryStringQuery#QueryStringQuery(HasWellFormedQuerySyntax, Collection, BooleanOperator) instead.
The support for alternative query is kept due to cyclic dependency and will be remove immediately
when all usages of this in bundled plugins have been removed.ESSearchManager
with invalid query syntax will result in exception.query - a query text that should contain well-formed supported query syntaxfieldNames - a set of fields to search against. May be empty, when all text and string fields are to be
searched.operator - the operator applied to query string. For example, with a query of "foo bar", specifying
BooleanOperator.AND means "foo AND bar"public QueryStringQuery(QueryTypeClassifier.Result.HasWellFormedQuerySyntax wellFormedQuery, Collection<String> fieldNames, BooleanOperator operator)
QueryTypeClassifier to contain well-formed supported query syntax,
as the fallback mechanism with alternative query will be removed in the immediate future, and the execution
of this query in Elasticsearch mode in ESSearchManager
with invalid query syntax will result in exception.wellFormedQuery - a query text that has been checked to contain well-formed supported query syntaxfieldNames - a set of fields to search against. May be empty, when all text and string fields are to be
searched.operator - the operator applied to query string. For example, with a query of "foo bar", specifying
BooleanOperator.AND means "foo AND bar"@Deprecated public QueryStringQuery(Collection<String> fieldNames, String query, BooleanOperator operator)
QueryStringQuery#QueryStringQuery(HasWellFormedQuerySyntax, Collection, BooleanOperator) instead.public String getKey()
getKey in interface SearchQuerypublic List<?> getParameters()
SearchQueryStrings or SearchQuerys.getParameters in interface SearchQueryStrings or SearchQuerys.public String getQuery()
public BooleanOperator getOperator()
Copyright © 2003–2016 Atlassian. All rights reserved.