public final class ScandinavianNormalizationFilter extends TokenFilter
It's a semantically less destructive solution than ScandinavianFoldingFilter
,
most useful when a person with a Norwegian or Danish keyboard queries a Swedish index
and vice versa. This filter does not the common Swedish folds of a and "a to a nor "o to o.
blabaersyltetoj == blab"arsyltet"oj == blaabaarsyltetoej but not blabarsyltetoj r"aksm"orgas == raeksmorgas == raeksm"orgaos == raeksmoergaas but not raksmorgas
ScandinavianFoldingFilter
AttributeSource.State
input
DEFAULT_TOKEN_ATTRIBUTE_FACTORY
Constructor and Description |
---|
ScandinavianNormalizationFilter(TokenStream input) |
Modifier and Type | Method and Description |
---|---|
boolean |
incrementToken() |
close, end, reset
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString
public ScandinavianNormalizationFilter(TokenStream input)
public boolean incrementToken() throws IOException
incrementToken
in class TokenStream
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.