Class PerFieldSimilarityWrapper
Provides the ability to use a different Similarity for different fields.
Subclasses should implement Get(String) to return an appropriate
Similarity (for example, using field-specific parameter values) for the field.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
PerFieldSimilarityWrapper
Assembly: Lucene.Net.dll
Syntax
public abstract class PerFieldSimilarityWrapper : Similarity
Constructors
|
Improve this Doc
View Source
PerFieldSimilarityWrapper()
Sole constructor. (For invocation by subclass
constructors, typically implicit.)
Declaration
public PerFieldSimilarityWrapper()
Methods
|
Improve this Doc
View Source
ComputeNorm(FieldInvertState)
Declaration
public override sealed long ComputeNorm(FieldInvertState state)
Parameters
Returns
Type |
Description |
System.Int64 |
|
Overrides
|
Improve this Doc
View Source
ComputeWeight(Single, CollectionStatistics, TermStatistics[])
Declaration
public override sealed Similarity.SimWeight ComputeWeight(float queryBoost, CollectionStatistics collectionStats, params TermStatistics[] termStats)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
Get(String)
Declaration
public abstract Similarity Get(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
|
Improve this Doc
View Source
GetSimScorer(Similarity.SimWeight, AtomicReaderContext)
Declaration
public override sealed Similarity.SimScorer GetSimScorer(Similarity.SimWeight weight, AtomicReaderContext context)
Parameters
Returns
Overrides