Class CustomScoreQuery
Query that sets document score as a programmatic function of several (sub) scores:
- the score of its subQuery (any query)
- (optional) the score of its FunctionQuery (or queries).
@lucene.experimental
Assembly: DistributedLucene.Net.Queries.dll
Syntax
public class CustomScoreQuery : Query
Constructors
Name | Description |
---|---|
CustomScoreQuery(Query) | Create a CustomScoreQuery over input |
CustomScoreQuery(Query, FunctionQuery) | Create a CustomScoreQuery over input |
CustomScoreQuery(Query, FunctionQuery[]) | Create a CustomScoreQuery over input |
Properties
Name | Description |
---|---|
IsStrict | Checks if this is strict custom scoring.
In strict custom scoring, the ValueSource part does not participate in weight normalization.
This may be useful when one wants full control over how scores are modified, and does
not care about normalizing by the ValueSource part.
One particular case where this is useful if for testing this query.
Note: only has effect when the ValueSource part is not |
Name | A short name of this query, used in ToString(String). |
ScoringQueries | The scoring queries that only affect the score of CustomScoreQuery. |
SubQuery | The sub-query that CustomScoreQuery wraps, affecting both the score and which documents match. |
Methods
Name | Description |
---|---|
Clone() | Clone() |
CreateWeight(IndexSearcher) | |
Equals(Object) | Returns true if |
ExtractTerms(ISet<Term>) | |
GetCustomScoreProvider(AtomicReaderContext) | Returns a CustomScoreProvider that calculates the custom scores for the given IndexReader. The default implementation returns a default implementation as specified in the docs of CustomScoreProvider. @since 2.9.2 |
GetHashCode() | Returns a hash code value for this object. |
Rewrite(IndexReader) | Rewrite(IndexReader) |
ToString(String) |