public abstract static class SynonymMap.Parser extends SynonymMap.Builder
| Constructor and Description |
|---|
Parser(boolean dedup,
Analyzer analyzer) |
| Modifier and Type | Method and Description |
|---|---|
CharsRef |
analyze(String text,
CharsRefBuilder reuse)
Sugar: analyzes the text with the analyzer and
separates by
SynonymMap.WORD_SEPARATOR. |
abstract void |
parse(Reader in)
Parse the given input, adding synonyms to the inherited
SynonymMap.Builder. |
add, build, joinpublic Parser(boolean dedup,
Analyzer analyzer)
public abstract void parse(Reader in) throws IOException, ParseException
SynonymMap.Builder.in - The input to parseIOExceptionParseExceptionpublic CharsRef analyze(String text, CharsRefBuilder reuse) throws IOException
SynonymMap.WORD_SEPARATOR.
reuse and its chars must not be null.IOExceptionCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.