public class SolrSynonymParser extends SynonymMap.Parser
i-pod, i pod => ipod
ipod, i-pod, i pod
foo => foo bar
foo => baz
is equivalent to
foo => foo bar, baz
Constructor and Description |
---|
SolrSynonymParser(boolean dedup,
boolean expand,
Analyzer analyzer) |
Modifier and Type | Method and Description |
---|---|
void |
parse(Reader in)
Parse the given input, adding synonyms to the inherited
SynonymMap.Builder . |
analyze
add, build, join
public SolrSynonymParser(boolean dedup, boolean expand, Analyzer analyzer)
public void parse(Reader in) throws IOException, ParseException
SynonymMap.Parser
SynonymMap.Builder
.parse
in class SynonymMap.Parser
in
- The input to parseIOException
ParseException
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.