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
FieldsFields inherited from interface com.atlassian.confluence.search.v2.SearchQuery
DEFAULT_BOOST -
Constructor Summary
ConstructorsConstructorDescriptionTextFieldQuery(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 TypeMethodDescriptionbooleangetAnalyzer(LanguageDescriptor language) Returns information required to construct analyzer for the query if it is available.getKey()List of parameters asStrings orSearchQuerys.inthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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.ANDmeans "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:
getKeyin interfaceSearchQuery- Returns:
- the plugin key
-
getParameters
Description copied from interface:SearchQueryList of parameters asStrings orSearchQuerys.- Specified by:
getParametersin interfaceSearchQuery- Returns:
Strings orSearchQuerys.
-
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()
-