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
-
-
Field Summary
Fields Modifier and Type Field Description static String
KEY
-
Fields inherited from interface com.atlassian.confluence.search.v2.SearchQuery
DEFAULT_BOOST
-
-
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 boolean
equals(Object o)
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.float
getBoost()
Return boost factor of this query.String
getKey()
List<?>
getParameters()
List of parameters asString
s orSearchQuery
s.Stream<SubClause<SearchQuery>>
getSubClauses()
Returns a stream of nested queries.SearchQuery
getWrappedQuery()
int
hashCode()
-
-
-
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:
getKey
in interfaceSearchQuery
- Returns:
- the plugin key
-
getParameters
public List<?> getParameters()
Description copied from interface:SearchQuery
List of parameters asString
s orSearchQuery
s.- Specified by:
getParameters
in interfaceSearchQuery
- Returns:
String
s orSearchQuery
s.
-
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:
expand
in interfaceExpandable<SearchQuery>
- Specified by:
expand
in interfaceSearchQuery
- Returns:
- a query
-
getSubClauses
public Stream<SubClause<SearchQuery>> getSubClauses()
Description copied from interface:SearchQuery
Returns a stream of nested queries.- Specified by:
getSubClauses
in interfaceSearchQuery
-
getWrappedQuery
public SearchQuery 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
-
-