|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectTokenStream
TokenFilter
AccentFoldingFilter
public class AccentFoldingFilter
Improves query results by converting accented characters to normal characters by removing diacritics.
| Field Summary | |
|---|---|
private CharMap |
accentMap
Set of characters to map |
| Fields inherited from class TokenFilter |
|---|
input |
| Constructor Summary | |
|---|---|
AccentFoldingFilter(TokenStream input,
CharMap accentMap)
Construct a token stream to remove accents from the input tokens. |
|
| Method Summary | |
|---|---|
Token |
next()
Retrieve the next token in the stream. |
| Methods inherited from class TokenFilter |
|---|
close |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private CharMap accentMap
| Constructor Detail |
|---|
public AccentFoldingFilter(TokenStream input,
CharMap accentMap)
input - Input stream of tokens to processaccentMap - Map of accented characters to their un-accented
counterparts.| Method Detail |
|---|
public Token next()
throws IOException
next in class TokenStreamIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||