@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
String s or SearchQuery s. |
String |
getQuery() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
expand
public 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 SearchQuery
public List<?> getParameters()
SearchQuery
String
s or SearchQuery
s.getParameters
in interface SearchQuery
String
s or SearchQuery
s.public String getQuery()
public BooleanOperator getOperator()
Copyright © 2003–2017 Atlassian. All rights reserved.