Have this method return 1f in order to 'disable' weights.
Namespace: Lucene.Net.Analyzers.Shingle.CodecAssembly: Lucene.Net.Contrib.Analyzers (in Lucene.Net.Contrib.Analyzers.dll) Version: 2.9.2.1 (2.9.2.1)
Syntax
C# |
---|
public abstract float GetWeight( Token token ) |
Visual Basic |
---|
Public MustOverride Function GetWeight ( _ token As Token _ ) As Single |
Visual C++ |
---|
public: virtual float GetWeight( Token^ token ) abstract |
Parameters
- token
- Type: Lucene.Net.Analysis..::..Token
[Missing <param name="token"/> documentation for "M:Lucene.Net.Analyzers.Shingle.Codec.TokenSettingsCodec.GetWeight(Lucene.Net.Analysis.Token)"]
Return Value
[Missing <returns> documentation for "M:Lucene.Net.Analyzers.Shingle.Codec.TokenSettingsCodec.GetWeight(Lucene.Net.Analysis.Token)"]