Class OpenSearchWordnetSynonymParser


  • public class OpenSearchWordnetSynonymParser
    extends org.apache.lucene.analysis.synonym.WordnetSynonymParser
    • Constructor Summary

      Constructors 
      Constructor Description
      OpenSearchWordnetSynonymParser​(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​(CharsRef input, CharsRef output, boolean includeOrig)  
      CharsRef analyze​(java.lang.String text, CharsRefBuilder reuse)  
      • Methods inherited from class org.apache.lucene.analysis.synonym.WordnetSynonymParser

        parse
      • Methods inherited from class org.apache.lucene.analysis.synonym.SynonymMap.Builder

        build, join
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OpenSearchWordnetSynonymParser

        public OpenSearchWordnetSynonymParser​(boolean dedup,
                                              boolean expand,
                                              boolean lenient,
                                              org.apache.lucene.analysis.Analyzer analyzer)
    • Method Detail

      • add

        public void add​(CharsRef input,
                        CharsRef output,
                        boolean includeOrig)
        Overrides:
        add in class org.apache.lucene.analysis.synonym.SynonymMap.Builder
      • analyze

        public CharsRef analyze​(java.lang.String text,
                                CharsRefBuilder reuse)
                         throws java.io.IOException
        Overrides:
        analyze in class org.apache.lucene.analysis.synonym.SynonymMap.Parser
        Throws:
        java.io.IOException