Splits tokens into synonyms at the same position, taking in a
simple map from a String to a list of its synonyms (which doesn't
need to contain the original token).
This has been heavily influenced by SynonymFilter from "Lucene in
Action" and upgraded for Lucene 4 because bundled
org.apache.lucene.analysis.synonym.SynonymFilter requires the
mappings to be built up in advance.
Apologies for all the mutable state: we're interacting with a
mutable Java API.
Linear Supertypes
TokenFilter, TokenStream, Closeable, AttributeSource, AnyRef, Any
Splits tokens into synonyms at the same position, taking in a simple map from a String to a list of its synonyms (which doesn't need to contain the original token).
This has been heavily influenced by SynonymFilter from "Lucene in Action" and upgraded for Lucene 4 because bundled
requires the mappings to be built up in advance.org.apache.lucene.analysis.synonym.SynonymFilter
Apologies for all the mutable state: we're interacting with a mutable Java API.