Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Public Member Functions | List of all members
Lucene.Net.Analysis.Shingle.Codec.OneDimensionalNonWeightedTokenSettingsCodec Class Reference

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.
 

Detailed Description

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.

Member Function Documentation

override TokenPositioner Lucene.Net.Analysis.Shingle.Codec.OneDimensionalNonWeightedTokenSettingsCodec.GetTokenPositioner ( Token  token)
virtual

Retrieves information on how a Token is to be inserted to a ShingleMatrixFilter.Matrix.

Parameters
token
Returns

Implements Lucene.Net.Analysis.Shingle.Codec.TokenSettingsCodec.

Definition at line 28 of file OneDimensionalNonWeightedTokenSettingsCodec.cs.

override float Lucene.Net.Analysis.Shingle.Codec.OneDimensionalNonWeightedTokenSettingsCodec.GetWeight ( Token  token)
virtual

Have this method return 1f in order to 'disable' weights.

Parameters
token
Returns

Implements Lucene.Net.Analysis.Shingle.Codec.TokenSettingsCodec.

Definition at line 37 of file OneDimensionalNonWeightedTokenSettingsCodec.cs.

override void Lucene.Net.Analysis.Shingle.Codec.OneDimensionalNonWeightedTokenSettingsCodec.SetTokenPositioner ( Token  token,
TokenPositioner  tokenPositioner 
)
virtual

Sets information on how a Token is to be inserted to a ShingleMatrixFilter.Matrix.

Parameters
token
tokenPositioner

Implements Lucene.Net.Analysis.Shingle.Codec.TokenSettingsCodec.

Definition at line 33 of file OneDimensionalNonWeightedTokenSettingsCodec.cs.

override void Lucene.Net.Analysis.Shingle.Codec.OneDimensionalNonWeightedTokenSettingsCodec.SetWeight ( Token  token,
float  weight 
)
virtual

Have this method do nothing in order to 'disable' weights.

Parameters
token
weight

Implements Lucene.Net.Analysis.Shingle.Codec.TokenSettingsCodec.

Definition at line 42 of file OneDimensionalNonWeightedTokenSettingsCodec.cs.


The documentation for this class was generated from the following file: