Have this method do nothing 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 void SetWeight( Token token, float weight ) |
Visual Basic |
---|
Public MustOverride Sub SetWeight ( _ token As Token, _ weight As Single _ ) |
Visual C++ |
---|
public: virtual void SetWeight( Token^ token, float weight ) abstract |
Parameters
- token
- Type: Lucene.Net.Analysis..::..Token
[Missing <param name="token"/> documentation for "M:Lucene.Net.Analyzers.Shingle.Codec.TokenSettingsCodec.SetWeight(Lucene.Net.Analysis.Token,System.Single)"]
- weight
- Type: System..::..Single
[Missing <param name="weight"/> documentation for "M:Lucene.Net.Analyzers.Shingle.Codec.TokenSettingsCodec.SetWeight(Lucene.Net.Analysis.Token,System.Single)"]