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, join
public Parser(boolean dedup, Analyzer analyzer)
public abstract void parse(Reader in) throws IOException, ParseException
SynonymMap.Builder
.in
- The input to parseIOException
ParseException
public CharsRef analyze(String text, CharsRefBuilder reuse) throws IOException
SynonymMap.WORD_SEPARATOR
.
reuse and its chars must not be null.IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.