Class DisjunctionMaxQuery.DisjunctionMaxWeight
Expert: the Weight for DisjunctionMaxQuery, used to
normalize, score and explain these queries.
NOTE: this API and implementation is subject to
change suddenly in the next release.
Inheritance
DisjunctionMaxQuery.DisjunctionMaxWeight
Assembly: Lucene.Net.dll
Syntax
protected class DisjunctionMaxQuery.DisjunctionMaxWeight : Weight
Constructors
DisjunctionMaxWeight(DisjunctionMaxQuery, IndexSearcher)
Construct the Weight for this Query searched by searcher
. Recursively construct subquery weights.
Declaration
public DisjunctionMaxWeight(DisjunctionMaxQuery outerInstance, IndexSearcher searcher)
Parameters
Fields
m_weights
The Weights for our subqueries, in 1-1 correspondence with disjuncts
Declaration
protected IList<Weight> m_weights
Field Value
Properties
Query
Declaration
public override Query Query { get; }
Property Value
Overrides
Methods
Explain(AtomicReaderContext, int)
Explain the score we computed for doc
Declaration
public override Explanation Explain(AtomicReaderContext context, int doc)
Parameters
Returns
Overrides
GetScorer(AtomicReaderContext, IBits)
Declaration
public override Scorer GetScorer(AtomicReaderContext context, IBits acceptDocs)
Parameters
Returns
Overrides
GetValueForNormalization()
Compute the sub of squared weights of us applied to our subqueries. Used for normalization.
Declaration
public override float GetValueForNormalization()
Returns
Overrides
Normalize(float, float)
Apply the computed normalization factor to our subqueries
Declaration
public override void Normalize(float norm, float topLevelBoost)
Parameters
Type |
Name |
Description |
float |
norm |
|
float |
topLevelBoost |
|
Overrides