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.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
protected class DisjunctionMaxWeight : Weight
Constructors
| Improve this Doc View SourceDisjunctionMaxWeight(DisjunctionMaxQuery, IndexSearcher)
Declaration
public DisjunctionMaxWeight(DisjunctionMaxQuery outerInstance, IndexSearcher searcher)
Parameters
| Type | Name | Description |
|---|---|---|
| DisjunctionMaxQuery | outerInstance | |
| IndexSearcher | searcher |
Fields
| Improve this Doc View Sourcem_weights
The Weights for our subqueries, in 1-1 correspondence with disjuncts
Declaration
protected List<Weight> m_weights
Field Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<Weight> |
Properties
| Improve this Doc View SourceQuery
Return our associated DisjunctionMaxQuery
Declaration
public override Query Query { get; }
Property Value
| Type | Description |
|---|---|
| Query |
Overrides
Methods
| Improve this Doc View SourceExplain(AtomicReaderContext, Int32)
Explain the score we computed for doc
Declaration
public override Explanation Explain(AtomicReaderContext context, int doc)
Parameters
| Type | Name | Description |
|---|---|---|
| AtomicReaderContext | context | |
| System.Int32 | doc |
Returns
| Type | Description |
|---|---|
| Explanation |
Overrides
| Improve this Doc View SourceGetScorer(AtomicReaderContext, IBits)
Create the scorer used to score our associated DisjunctionMaxQuery
Declaration
public override Scorer GetScorer(AtomicReaderContext context, IBits acceptDocs)
Parameters
| Type | Name | Description |
|---|---|---|
| AtomicReaderContext | context | |
| IBits | acceptDocs |
Returns
| Type | Description |
|---|---|
| Scorer |
Overrides
| Improve this Doc View SourceGetValueForNormalization()
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 SourceNormalize(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 |