com.atlassian.confluence.search.v2.query
Class TextFieldQuery
java.lang.Object
com.atlassian.confluence.search.v2.query.TextFieldQuery
- All Implemented Interfaces:
- SearchQuery
public class TextFieldQuery
- extends java.lang.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.
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
TextFieldQuery
public TextFieldQuery(java.lang.String fieldName,
java.lang.String rawQuery,
BooleanOperator operator)
- Parameters:
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"
getKey
public java.lang.String getKey()
- Specified by:
getKey in interface SearchQuery
- Returns:
- the plugin key
getParameters
public java.util.List getParameters()
- Description copied from interface:
SearchQuery
- List of parameters as
Strings or SearchQuerys.
- Specified by:
getParameters in interface SearchQuery
- Returns:
Strings or SearchQuerys.
getFieldName
public java.lang.String getFieldName()
getRawQuery
public java.lang.String getRawQuery()
getOperator
public BooleanOperator getOperator()
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
Copyright © 2003-2014 Atlassian. All Rights Reserved.