Constructor ConstantScoreQuery
ConstantScoreQuery(Query)
Strips off scores from the passed in Query. The hits will get a constant score dependent on the boost factor of this query.
Declaration
public ConstantScoreQuery(Query query)
Parameters
Type | Name | Description |
---|---|---|
Query | query |
ConstantScoreQuery(Filter)
Wraps a Filter as a Query. The hits will get a constant score
dependent on the boost factor of this query.
If you simply want to strip off scores from a Query, no longer use
new ConstantScoreQuery(new QueryWrapperFilter(query))
, instead
use ConstantScoreQuery(Query)!
Declaration
public ConstantScoreQuery(Filter filter)
Parameters
Type | Name | Description |
---|---|---|
Filter | filter |