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
System.Object
DisjunctionMaxQuery.DisjunctionMaxWeight
Assembly: Lucene.Net.dll
Syntax
protected class DisjunctionMaxWeight : Weight
Constructors
|
Improve this Doc
View Source
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
|
Improve this Doc
View Source
m_weights
The Weights for our subqueries, in 1-1 correspondence with disjuncts
Declaration
protected List<Weight> m_weights
Field Value
Properties
|
Improve this Doc
View Source
Query
Declaration
public override Query Query { get; }
Property Value
Overrides
Methods
|
Improve this Doc
View Source
Explain(AtomicReaderContext, Int32)
Explain the score we computed for doc
Declaration
public override Explanation Explain(AtomicReaderContext context, int doc)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
GetScorer(AtomicReaderContext, IBits)
Declaration
public override Scorer GetScorer(AtomicReaderContext context, IBits acceptDocs)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
GetValueForNormalization()
Compute the sub of squared weights of us applied to our subqueries. Used for normalization.
Declaration
public override float GetValueForNormalization()
Returns
Type |
Description |
System.Single |
|
Overrides
|
Improve this Doc
View Source
Normalize(Single, Single)
Apply the computed normalization factor to our subqueries
Declaration
public override void Normalize(float norm, float topLevelBoost)
Parameters
Type |
Name |
Description |
System.Single |
norm |
|
System.Single |
topLevelBoost |
|
Overrides