Class ConstantScoreQuery
A query that wraps another query or a filter and simply returns a constant score equal to the query boost for every document that matches the filter or query. For queries it therefore simply strips of all scores and returns a constant one.
Assembly: DistributedLucene.Net.dll
Syntax
public class ConstantScoreQuery : Query
Constructors
Name | Description |
---|---|
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
|
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. |
Fields
Name | Description |
---|---|
m_filter | |
m_query |
Properties
Name | Description |
---|---|
Filter | Returns the encapsulated filter, returns |
Query | Returns the encapsulated query, returns |
Methods
Name | Description |
---|---|
CreateWeight(IndexSearcher) | |
Equals(Object) | |
ExtractTerms(ISet<Term>) | |
GetHashCode() | |
Rewrite(IndexReader) | |
ToString(String) |