Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
Strategy used to code and decode meta data of the tokens from the input stream regarding how to position the tokens in the matrix, set and retreive weight, etc. More...
Inherited by Lucene.Net.Analysis.Shingle.Codec.OneDimensionalNonWeightedTokenSettingsCodec, Lucene.Net.Analysis.Shingle.Codec.SimpleThreeDimensionalTokenSettingsCodec, and Lucene.Net.Analysis.Shingle.Codec.TwoDimensionalNonWeightedSynonymTokenSettingsCodec.
Public Member Functions | |
abstract TokenPositioner | GetTokenPositioner (Token token) |
Retrieves information on how a Token is to be inserted to a ShingleMatrixFilter.Matrix. | |
abstract void | SetTokenPositioner (Token token, TokenPositioner tokenPositioner) |
Sets information on how a Token is to be inserted to a ShingleMatrixFilter.Matrix. | |
abstract float | GetWeight (Token token) |
Have this method return 1f in order to 'disable' weights. | |
abstract void | SetWeight (Token token, float weight) |
Have this method do nothing in order to 'disable' weights. | |
Strategy used to code and decode meta data of the tokens from the input stream regarding how to position the tokens in the matrix, set and retreive weight, etc.
Definition at line 24 of file TokenSettingsCodec.cs.
|
pure virtual |
Retrieves information on how a Token is to be inserted to a ShingleMatrixFilter.Matrix.
token |
Implemented in Lucene.Net.Analysis.Shingle.Codec.SimpleThreeDimensionalTokenSettingsCodec, Lucene.Net.Analysis.Shingle.Codec.TwoDimensionalNonWeightedSynonymTokenSettingsCodec, and Lucene.Net.Analysis.Shingle.Codec.OneDimensionalNonWeightedTokenSettingsCodec.
|
pure virtual |
Have this method return 1f in order to 'disable' weights.
token |
Implemented in Lucene.Net.Analysis.Shingle.Codec.SimpleThreeDimensionalTokenSettingsCodec, Lucene.Net.Analysis.Shingle.Codec.TwoDimensionalNonWeightedSynonymTokenSettingsCodec, and Lucene.Net.Analysis.Shingle.Codec.OneDimensionalNonWeightedTokenSettingsCodec.
|
pure virtual |
Sets information on how a Token is to be inserted to a ShingleMatrixFilter.Matrix.
token | |
tokenPositioner |
Implemented in Lucene.Net.Analysis.Shingle.Codec.SimpleThreeDimensionalTokenSettingsCodec, Lucene.Net.Analysis.Shingle.Codec.TwoDimensionalNonWeightedSynonymTokenSettingsCodec, and Lucene.Net.Analysis.Shingle.Codec.OneDimensionalNonWeightedTokenSettingsCodec.
|
pure virtual |
Have this method do nothing in order to 'disable' weights.
token | |
weight |
Implemented in Lucene.Net.Analysis.Shingle.Codec.SimpleThreeDimensionalTokenSettingsCodec, Lucene.Net.Analysis.Shingle.Codec.TwoDimensionalNonWeightedSynonymTokenSettingsCodec, and Lucene.Net.Analysis.Shingle.Codec.OneDimensionalNonWeightedTokenSettingsCodec.