@SearchPrimitive public class ConstantScoreQuery extends Object implements SearchQuery
Constructor and Description |
---|
ConstantScoreQuery(SearchQuery wrappedQuery) |
ConstantScoreQuery(SearchQuery query,
float boost) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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
String s or SearchQuery s. |
SearchQuery |
getWrappedQuery() |
int |
hashCode() |
public static final String KEY
public ConstantScoreQuery(SearchQuery wrappedQuery)
public ConstantScoreQuery(SearchQuery query, float boost)
public String getKey()
getKey
in interface SearchQuery
public List<?> getParameters()
SearchQuery
String
s or SearchQuery
s.getParameters
in interface SearchQuery
String
s or SearchQuery
s.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 SearchQuery
public SearchQuery getWrappedQuery()
public float getBoost()
SearchQuery
BooleanQuery
.getBoost
in interface SearchQuery
Copyright © 2003–2021 Atlassian. All rights reserved.