Package org.elasticsearch.index.analysis
Class ESWordnetSynonymParser
- java.lang.Object
-
- org.apache.lucene.analysis.synonym.SynonymMap.Builder
-
- org.apache.lucene.analysis.synonym.SynonymMap.Parser
-
- org.apache.lucene.analysis.synonym.WordnetSynonymParser
-
- org.elasticsearch.index.analysis.ESWordnetSynonymParser
-
public class ESWordnetSynonymParser extends org.apache.lucene.analysis.synonym.WordnetSynonymParser
-
-
Constructor Summary
Constructors Constructor Description ESWordnetSynonymParser(boolean dedup, boolean expand, boolean lenient, org.apache.lucene.analysis.Analyzer analyzer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(org.apache.lucene.util.CharsRef input, org.apache.lucene.util.CharsRef output, boolean includeOrig)
org.apache.lucene.util.CharsRef
analyze(java.lang.String text, org.apache.lucene.util.CharsRefBuilder reuse)
-
-
-
Method Detail
-
add
public void add(org.apache.lucene.util.CharsRef input, org.apache.lucene.util.CharsRef output, boolean includeOrig)
- Overrides:
add
in classorg.apache.lucene.analysis.synonym.SynonymMap.Builder
-
analyze
public org.apache.lucene.util.CharsRef analyze(java.lang.String text, org.apache.lucene.util.CharsRefBuilder reuse) throws java.io.IOException
- Overrides:
analyze
in classorg.apache.lucene.analysis.synonym.SynonymMap.Parser
- Throws:
java.io.IOException
-
-