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
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public abstract class ScoringRewrite<Q> : TermCollectingRewrite<Q> where Q : Query
Type Parameters
Name | Description |
---|---|
Q |
Fields
| Improve this Doc View SourceCONSTANT_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
Boolean
Declaration
public static readonly MultiTermQuery.RewriteMethod CONSTANT_SCORE_BOOLEAN_QUERY_REWRITE
Field Value
Type | Description |
---|---|
Multi |
See Also
| Improve this Doc View SourceSCORING_BOOLEAN_QUERY_REWRITE
A rewrite method that first translates each term into
SHOULD clause in a
Boolean
NOTE: this rewrite method will hit
Boolean
Declaration
public static readonly ScoringRewrite<BooleanQuery> SCORING_BOOLEAN_QUERY_REWRITE
Field Value
Type | Description |
---|---|
Scoring |
See Also
Methods
| Improve this Doc View SourceCheckMaxClauseCount(Int32)
This method is called after every new term to check if the number of max clauses
(e.g. in Boolean
Declaration
protected abstract void CheckMaxClauseCount(int count)
Parameters
Type | Name | Description |
---|---|---|
System. |
count |
Rewrite(IndexReader, MultiTermQuery)
Declaration
public override Query Rewrite(IndexReader reader, MultiTermQuery query)
Parameters
Type | Name | Description |
---|---|---|
Index |
reader | |
Multi |
query |
Returns
Type | Description |
---|---|
Query |