Class ScoringRewrite<Q>
Base rewrite method that translates each term into a query, and keeps the scores as computed by the query.
@lucene.internal - Only public to be accessible by spans package.
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class ScoringRewrite<Q> : TermCollectingRewrite<Q> where Q : Query
Type Parameters
Name | Description |
---|---|
Q |
Fields
Name | Description |
---|---|
CONSTANT_SCORE_BOOLEAN_QUERY_REWRITE | Like SCORING_BOOLEAN_QUERY_REWRITE except scores are not computed. Instead, each matching document receives a constant score equal to the query's boost. NOTE: this rewrite method will hit BooleanQuery.TooManyClausesException if the number of terms exceeds MaxClauseCount. |
SCORING_BOOLEAN_QUERY_REWRITE | A rewrite method that first translates each term into SHOULD clause in a BooleanQuery, and keeps the scores as computed by the query. Note that typically such scores are meaningless to the user, and require non-trivial CPU to compute, so it's almost always better to use CONSTANT_SCORE_AUTO_REWRITE_DEFAULT instead. NOTE: this rewrite method will hit BooleanQuery.TooManyClausesException if the number of terms exceeds MaxClauseCount. |
Methods
Name | Description |
---|---|
CheckMaxClauseCount(Int32) | This method is called after every new term to check if the number of max clauses
(e.g. in BooleanQuery) is not exceeded. Throws the corresponding |
Rewrite(IndexReader, MultiTermQuery) |