public class TextFieldQuery extends Object implements SearchQuery
Represents a raw query from the user that may be parsed.
Note: Using this query means that you know the name of fields within your index. This means that your code is
bound to the name of fields in the index which could change.
Ultimately you should not consider the TextFieldQuery part of the public search API.
| Constructor and Description |
|---|
TextFieldQuery(String fieldName,
String rawQuery,
BooleanOperator operator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getFieldName() |
String |
getKey() |
BooleanOperator |
getOperator() |
List |
getParameters()
List of parameters as
Strings or SearchQuerys. |
String |
getRawQuery() |
String |
getUnescapedQuery() |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitexpandpublic static final String KEY
public TextFieldQuery(String fieldName, String rawQuery, BooleanOperator operator)
fieldName - the field name in the indexrawQuery - the raw query string for the fieldoperator - the operator applied to raw query string. For example, with a rawQuery of "foo bar", specifying
BooleanOperator.AND means "foo AND bar"public String getKey()
getKey in interface SearchQuerypublic List getParameters()
SearchQueryStrings or SearchQuerys.getParameters in interface SearchQueryStrings or SearchQuerys.public String getFieldName()
public String getRawQuery()
public String getUnescapedQuery()
public BooleanOperator getOperator()
Copyright © 2003–2017 Atlassian. All rights reserved.