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 TypeMethodDescriptionboolean
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.float
getBoost()
Return boost factor of this query.getKey()
List<?>
List of parameters asString
s orSearchQuery
s.Returns a stream of nested queries.int
hashCode()
-
Field Details
-
KEY
- See Also:
-
-
Constructor Details
-
ConstantScoreQuery
-
ConstantScoreQuery
-
-
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.
-
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:
expand
in interfaceExpandable<SearchQuery>
- Specified by:
expand
in interfaceSearchQuery
- Returns:
- a query
-
getSubClauses
Description copied from interface:SearchQuery
Returns a stream of nested queries.- Specified by:
getSubClauses
in interfaceSearchQuery
-
getWrappedQuery
-
getBoost
public float getBoost()Description copied from interface:SearchQuery
Return boost factor of this query. It will take effect when the query is used in combination with others e.g. inBooleanQuery
.- Specified by:
getBoost
in interfaceSearchQuery
- Returns:
- boost factor
-
equals
-
hashCode
public int hashCode()
-