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 SummaryFields Modifier and Type Field Description static StringKEY- 
Fields inherited from interface com.atlassian.confluence.search.v2.SearchQueryDEFAULT_BOOST
 
- 
 - 
Constructor SummaryConstructors Constructor Description ConstantScoreQuery(SearchQuery wrappedQuery)ConstantScoreQuery(SearchQuery query, float boost)
 - 
Method SummaryAll 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- 
KEYpublic static final String KEY - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ConstantScoreQuerypublic ConstantScoreQuery(SearchQuery wrappedQuery) 
 - 
ConstantScoreQuerypublic ConstantScoreQuery(SearchQuery query, float boost) 
 
- 
 - 
Method Detail- 
getKeypublic String getKey() - Specified by:
- getKeyin interface- SearchQuery
- Returns:
- the plugin key
 
 - 
getParameterspublic List<?> getParameters() Description copied from interface:SearchQueryList of parameters asStrings orSearchQuerys.- Specified by:
- getParametersin interface- SearchQuery
- Returns:
- Strings or- SearchQuerys.
 
 - 
expandpublic 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 interface- Expandable<SearchQuery>
- Specified by:
- expandin interface- SearchQuery
- Returns:
- a query
 
 - 
getSubClausespublic Stream<SubClause<SearchQuery>> getSubClauses() Description copied from interface:SearchQueryReturns a stream of nested queries.- Specified by:
- getSubClausesin interface- SearchQuery
 
 - 
getWrappedQuerypublic SearchQuery getWrappedQuery() 
 - 
getBoostpublic 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 interface- SearchQuery
- Returns:
- boost factor
 
 
- 
 
-