Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
Using this codec makes a ShingleMatrixFilter act like ShingleFilter. It produces the most simple sort of shingles, ignoring token position increments, etc. More...
Inherits Lucene.Net.Analysis.Shingle.Codec.TokenSettingsCodec.
Public Member Functions | |
override TokenPositioner | GetTokenPositioner (Token token) |
Retrieves information on how a Token is to be inserted to a ShingleMatrixFilter.Matrix. | |
override void | SetTokenPositioner (Token token, TokenPositioner tokenPositioner) |
Sets information on how a Token is to be inserted to a ShingleMatrixFilter.Matrix. | |
override float | GetWeight (Token token) |
Have this method return 1f in order to 'disable' weights. | |
override void | SetWeight (Token token, float weight) |
Have this method do nothing in order to 'disable' weights. | |
Using this codec makes a ShingleMatrixFilter act like ShingleFilter. It produces the most simple sort of shingles, ignoring token position increments, etc.
It adds each token as a new column.
Definition at line 26 of file OneDimensionalNonWeightedTokenSettingsCodec.cs.
|
virtual |
Retrieves information on how a Token is to be inserted to a ShingleMatrixFilter.Matrix.
token |
Implements Lucene.Net.Analysis.Shingle.Codec.TokenSettingsCodec.
Definition at line 28 of file OneDimensionalNonWeightedTokenSettingsCodec.cs.
|
virtual |
Have this method return 1f in order to 'disable' weights.
token |
Implements Lucene.Net.Analysis.Shingle.Codec.TokenSettingsCodec.
Definition at line 37 of file OneDimensionalNonWeightedTokenSettingsCodec.cs.
|
virtual |
Sets information on how a Token is to be inserted to a ShingleMatrixFilter.Matrix.
token | |
tokenPositioner |
Implements Lucene.Net.Analysis.Shingle.Codec.TokenSettingsCodec.
Definition at line 33 of file OneDimensionalNonWeightedTokenSettingsCodec.cs.
|
virtual |
Have this method do nothing in order to 'disable' weights.
token | |
weight |
Implements Lucene.Net.Analysis.Shingle.Codec.TokenSettingsCodec.
Definition at line 42 of file OneDimensionalNonWeightedTokenSettingsCodec.cs.