Class ConstantScoreQuery
- java.lang.Object
-
- com.atlassian.confluence.search.v2.query.ConstantScoreQuery
-
- All Implemented Interfaces:
Expandable<SearchQuery>,SearchQuery
@SearchPrimitive public class ConstantScoreQuery extends Object implements SearchQuery
v2 primitive query- Since:
- 5.10
-
-
Constructor Summary
Constructors Constructor Description ConstantScoreQuery(SearchQuery wrappedQuery)ConstantScoreQuery(SearchQuery query, float boost)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)SearchQueryexpand()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.StringgetKey()List<?>getParameters()List of parameters asStrings orSearchQuerys.Stream<SubClause<SearchQuery>>getSubClauses()Returns a stream of nested queries.SearchQuerygetWrappedQuery()inthashCode()
-
-
-
Field Detail
-
KEY
public static final String KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConstantScoreQuery
public ConstantScoreQuery(SearchQuery wrappedQuery)
-
ConstantScoreQuery
public ConstantScoreQuery(SearchQuery query, float boost)
-
-
Method Detail
-
getKey
public String getKey()
- Specified by:
getKeyin interfaceSearchQuery- Returns:
- the plugin key
-
getParameters
public List<?> getParameters()
Description copied from interface:SearchQueryList of parameters asStrings orSearchQuerys.- Specified by:
getParametersin interfaceSearchQuery- Returns:
Strings orSearchQuerys.
-
expand
public SearchQuery 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
public Stream<SubClause<SearchQuery>> getSubClauses()
Description copied from interface:SearchQueryReturns a stream of nested queries.- Specified by:
getSubClausesin interfaceSearchQuery
-
getWrappedQuery
public SearchQuery 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
-
-