public static class ShingleMatrixFilter.TwoDimensionalNonWeightedSynonymTokenSettingsCodec extends ShingleMatrixFilter.TokenSettingsCodec
| Constructor and Description |
|---|
ShingleMatrixFilter.TwoDimensionalNonWeightedSynonymTokenSettingsCodec() |
| Modifier and Type | Method and Description |
|---|---|
ShingleMatrixFilter.TokenPositioner |
getTokenPositioner(org.apache.lucene.analysis.Token token)
Retrieves information on how a
Token is to be inserted to a ShingleMatrixFilter.Matrix. |
float |
getWeight(org.apache.lucene.analysis.Token token)
Have this method return 1f in order to 'disable' weights.
|
void |
setTokenPositioner(org.apache.lucene.analysis.Token token,
ShingleMatrixFilter.TokenPositioner tokenPositioner)
Sets information on how a
Token is to be inserted to a ShingleMatrixFilter.Matrix. |
void |
setWeight(org.apache.lucene.analysis.Token token,
float weight)
Have this method do nothing in order to 'disable' weights.
|
public ShingleMatrixFilter.TwoDimensionalNonWeightedSynonymTokenSettingsCodec()
public ShingleMatrixFilter.TokenPositioner getTokenPositioner(org.apache.lucene.analysis.Token token) throws IOException
ShingleMatrixFilter.TokenSettingsCodecToken is to be inserted to a ShingleMatrixFilter.Matrix.getTokenPositioner in class ShingleMatrixFilter.TokenSettingsCodecShingleMatrixFilter.TokenPositionerIOExceptionpublic void setTokenPositioner(org.apache.lucene.analysis.Token token,
ShingleMatrixFilter.TokenPositioner tokenPositioner)
ShingleMatrixFilter.TokenSettingsCodecToken is to be inserted to a ShingleMatrixFilter.Matrix.setTokenPositioner in class ShingleMatrixFilter.TokenSettingsCodecpublic float getWeight(org.apache.lucene.analysis.Token token)
ShingleMatrixFilter.TokenSettingsCodecgetWeight in class ShingleMatrixFilter.TokenSettingsCodecpublic void setWeight(org.apache.lucene.analysis.Token token,
float weight)
ShingleMatrixFilter.TokenSettingsCodecsetWeight in class ShingleMatrixFilter.TokenSettingsCodecCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.