Class MultiSimilarity
Implements the CombSUM method for combining evidence from multiple similarity values described in: Joseph A. Shaw, Edward A. Fox. In Text REtrieval Conference (1993), pp. 243-252
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
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.Similarities
Assembly: Lucene.Net.dll
Syntax
public class MultiSimilarity : Similarity
Constructors
| Improve this Doc View SourceMultiSimilarity(Similarity[])
Creates a MultiSimilarity which will sum the scores
of the provided sims
.
Declaration
public MultiSimilarity(Similarity[] sims)
Parameters
Type | Name | Description |
---|---|---|
Similarity[] | sims |
Fields
| Improve this Doc View Sourcem_sims
the sub-similarities used to create the combined score
Declaration
protected readonly Similarity[] m_sims
Field Value
Type | Description |
---|---|
Similarity[] |
Methods
| Improve this Doc View SourceComputeNorm(FieldInvertState)
Declaration
public override long ComputeNorm(FieldInvertState state)
Parameters
Type | Name | Description |
---|---|---|
FieldInvertState | state |
Returns
Type | Description |
---|---|
System.Int64 |
Overrides
| Improve this Doc View SourceComputeWeight(Single, CollectionStatistics, TermStatistics[])
Declaration
public override Similarity.SimWeight ComputeWeight(float queryBoost, CollectionStatistics collectionStats, params TermStatistics[] termStats)
Parameters
Type | Name | Description |
---|---|---|
System.Single | queryBoost | |
CollectionStatistics | collectionStats | |
TermStatistics[] | termStats |
Returns
Type | Description |
---|---|
Similarity.SimWeight |
Overrides
| Improve this Doc View SourceGetSimScorer(Similarity.SimWeight, AtomicReaderContext)
Declaration
public override Similarity.SimScorer GetSimScorer(Similarity.SimWeight stats, AtomicReaderContext context)
Parameters
Type | Name | Description |
---|---|---|
Similarity.SimWeight | stats | |
AtomicReaderContext | context |
Returns
Type | Description |
---|---|
Similarity.SimScorer |