public class ConstantScoreQuery extends Object implements SearchQuery
| Constructor and Description |
|---|
ConstantScoreQuery(SearchQuery wrappedQuery) |
ConstantScoreQuery(SearchQuery query,
float boost) |
| Modifier and Type | Method and Description |
|---|---|
SearchQuery |
expand()
This primitive but is similar to
BooleanQuery, 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 as
Strings or SearchQuerys. |
SearchQuery |
getWrappedQuery() |
public static final String KEY
public ConstantScoreQuery(SearchQuery wrappedQuery)
public ConstantScoreQuery(SearchQuery query, float boost)
public String getKey()
getKey in interface SearchQuerypublic List<?> getParameters()
SearchQueryStrings or SearchQuerys.getParameters in interface SearchQueryStrings or SearchQuerys.public SearchQuery expand()
BooleanQuery, which in some sense primitive but also need to implement
expand method, because the wrapped query need to be expanded.expand in interface Expandable<SearchQuery>expand in interface SearchQuerypublic SearchQuery getWrappedQuery()
public float getBoost()
SearchQueryBooleanQuery.getBoost in interface SearchQueryCopyright © 2003–2019 Atlassian. All rights reserved.