Class ConstantScoreQuery
java.lang.Object
com.atlassian.confluence.search.v2.query.ConstantScoreQuery
- All Implemented Interfaces:
Expandable<SearchQuery>,SearchQuery
v2 primitive query
- Since:
- 5.10
-
Field Summary
FieldsFields inherited from interface com.atlassian.confluence.search.v2.SearchQuery
DEFAULT_BOOST -
Constructor Summary
ConstructorsConstructorDescriptionConstantScoreQuery(SearchQuery wrappedQuery) ConstantScoreQuery(SearchQuery query, float boost) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexpand()This primitive but is similar toBooleanQuery, which in some sense primitive but also need to implement expand method, because the wrapped query need to be expanded.floatgetBoost()Return boost factor of this query.getKey()List<?>List of parameters asStrings orSearchQuerys.Returns a stream of nested queries.inthashCode()
-
Field Details
-
KEY
- See Also:
-
-
Constructor Details
-
ConstantScoreQuery
-
ConstantScoreQuery
-
-
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.
-
expand
This primitive but is similar toBooleanQuery, which in some sense primitive but also need to implement expand method, because the wrapped query need to be expanded.- Specified by:
expandin interfaceExpandable<SearchQuery>- Specified by:
expandin interfaceSearchQuery- Returns:
- a query
-
getSubClauses
Description copied from interface:SearchQueryReturns a stream of nested queries.- Specified by:
getSubClausesin interfaceSearchQuery
-
getWrappedQuery
-
getBoost
public float getBoost()Description copied from interface:SearchQueryReturn boost factor of this query. It will take effect when the query is used in combination with others e.g. inBooleanQuery.- Specified by:
getBoostin interfaceSearchQuery- Returns:
- boost factor
-
equals
-
hashCode
public int hashCode()
-