public class TextFieldPrefixQuery extends Object implements SearchQuery
Represents a query that specifies a prefix to be matched - equivalent to a trailing wildcard search e.g. 'app' will match 'apple'
Note: Using this query means that you know the name of fields within you 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
TextFieldPrefixQuery part of the public search API.
| Constructor and Description |
|---|
TextFieldPrefixQuery(String fieldName,
String prefix)
Construct a new TextFieldPrefixQuery.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
SearchQuery |
expand()
Expands this query into a composite query (that composes other queries).
|
String |
getFieldName() |
String |
getKey() |
List |
getParameters()
List of parameters as
Strings or SearchQuerys. |
String |
getPrefix() |
int |
hashCode() |
String |
toString() |
public String getKey()
getKey in interface SearchQuerypublic List getParameters()
SearchQueryStrings or SearchQuerys.getParameters in interface SearchQueryStrings or SearchQuerys.public String getFieldName()
public String getPrefix()
public SearchQuery expand()
SearchQueryexpand in interface Expandable<SearchQuery>expand in interface SearchQueryCopyright © 2003–2016 Atlassian. All rights reserved.