Class TextFieldQuery
java.lang.Object
com.atlassian.confluence.search.v2.query.TextFieldQuery
- All Implemented Interfaces:
Expandable<SearchQuery>
,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.
-
Field Summary
Fields inherited from interface com.atlassian.confluence.search.v2.SearchQuery
DEFAULT_BOOST
-
Constructor Summary
ConstructorDescriptionTextFieldQuery
(String fieldName, AnalyzerDescriptorProvider analyzerProvider, BooleanOperator operator, String query) Construct a query with a custom analyzer.TextFieldQuery
(String fieldName, String query, BooleanOperator operator) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getAnalyzer
(LanguageDescriptor language) Returns information required to construct analyzer for the query if it is available.getKey()
List of parameters asString
s orSearchQuery
s.int
hashCode()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.confluence.search.v2.SearchQuery
expand, getBoost, getSubClauses
-
Field Details
-
KEY
- See Also:
-
-
Constructor Details
-
TextFieldQuery
- Parameters:
fieldName
- the field name in the indexquery
- the raw query string for the fieldoperator
- the operator applied to raw query string. For example, with a rawQuery of "foo bar", specifyingBooleanOperator.AND
means "foo AND bar"
-
TextFieldQuery
public TextFieldQuery(String fieldName, AnalyzerDescriptorProvider analyzerProvider, BooleanOperator operator, String query) Construct a query with a custom analyzer.- Since:
- 7.0
-
-
Method Details
-
getKey
- Specified by:
getKey
in interfaceSearchQuery
- Returns:
- the plugin key
-
getParameters
Description copied from interface:SearchQuery
List of parameters asString
s orSearchQuery
s.- Specified by:
getParameters
in interfaceSearchQuery
- Returns:
String
s orSearchQuery
s.
-
getFieldName
-
getRawQuery
-
getUnescapedQuery
-
getOperator
-
getAnalyzerDescriptorProvider
-
getAnalyzer
Returns information required to construct analyzer for the query if it is available.- Since:
- 7.0
-
equals
-
hashCode
public int hashCode()
-