java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.Analyzer
All Implemented Interfaces:
JsonpSerializable, OpenTaggedUnion<Analyzer.Kind,Object>, TaggedUnion<Analyzer.Kind,Object>

See Also:
  • Field Details

  • Constructor Details

    • Analyzer

      public Analyzer(AnalyzerVariant value)
    • Analyzer

      public Analyzer(String kind, JsonData value)
      Build a custom plugin-defined Analyzer, given its kind and some JSON data
  • Method Details

    • _kind

      public final Analyzer.Kind _kind()
      Description copied from interface: TaggedUnion
      Get the of the kind of variant held by this object.
      Specified by:
      _kind in interface TaggedUnion<Analyzer.Kind,Object>
      Returns:
      the variant kind
    • _get

      public final Object _get()
      Specified by:
      _get in interface TaggedUnion<Analyzer.Kind,Object>
    • of

    • isArabic

      public boolean isArabic()
      Is this variant instance of kind arabic?
    • arabic

      public ArabicAnalyzer arabic()
      Get the arabic variant value.
      Throws:
      IllegalStateException - if the current variant is not of the arabic kind.
    • isArmenian

      public boolean isArmenian()
      Is this variant instance of kind armenian?
    • armenian

      public ArmenianAnalyzer armenian()
      Get the armenian variant value.
      Throws:
      IllegalStateException - if the current variant is not of the armenian kind.
    • isBasque

      public boolean isBasque()
      Is this variant instance of kind basque?
    • basque

      public BasqueAnalyzer basque()
      Get the basque variant value.
      Throws:
      IllegalStateException - if the current variant is not of the basque kind.
    • isBengali

      public boolean isBengali()
      Is this variant instance of kind bengali?
    • bengali

      public BengaliAnalyzer bengali()
      Get the bengali variant value.
      Throws:
      IllegalStateException - if the current variant is not of the bengali kind.
    • isBrazilian

      public boolean isBrazilian()
      Is this variant instance of kind brazilian?
    • brazilian

      public BrazilianAnalyzer brazilian()
      Get the brazilian variant value.
      Throws:
      IllegalStateException - if the current variant is not of the brazilian kind.
    • isBulgarian

      public boolean isBulgarian()
      Is this variant instance of kind bulgarian?
    • bulgarian

      public BulgarianAnalyzer bulgarian()
      Get the bulgarian variant value.
      Throws:
      IllegalStateException - if the current variant is not of the bulgarian kind.
    • isCatalan

      public boolean isCatalan()
      Is this variant instance of kind catalan?
    • catalan

      public CatalanAnalyzer catalan()
      Get the catalan variant value.
      Throws:
      IllegalStateException - if the current variant is not of the catalan kind.
    • isChinese

      public boolean isChinese()
      Is this variant instance of kind chinese?
    • chinese

      public ChineseAnalyzer chinese()
      Get the chinese variant value.
      Throws:
      IllegalStateException - if the current variant is not of the chinese kind.
    • isCjk

      public boolean isCjk()
      Is this variant instance of kind cjk?
    • cjk

      public CjkAnalyzer cjk()
      Get the cjk variant value.
      Throws:
      IllegalStateException - if the current variant is not of the cjk kind.
    • isCustom

      public boolean isCustom()
      Is this variant instance of kind custom?
    • custom

      public CustomAnalyzer custom()
      Get the custom variant value.
      Throws:
      IllegalStateException - if the current variant is not of the custom kind.
    • isCzech

      public boolean isCzech()
      Is this variant instance of kind czech?
    • czech

      public CzechAnalyzer czech()
      Get the czech variant value.
      Throws:
      IllegalStateException - if the current variant is not of the czech kind.
    • isDanish

      public boolean isDanish()
      Is this variant instance of kind danish?
    • danish

      public DanishAnalyzer danish()
      Get the danish variant value.
      Throws:
      IllegalStateException - if the current variant is not of the danish kind.
    • isDutch

      public boolean isDutch()
      Is this variant instance of kind dutch?
    • dutch

      public DutchAnalyzer dutch()
      Get the dutch variant value.
      Throws:
      IllegalStateException - if the current variant is not of the dutch kind.
    • isEnglish

      public boolean isEnglish()
      Is this variant instance of kind english?
    • english

      public EnglishAnalyzer english()
      Get the english variant value.
      Throws:
      IllegalStateException - if the current variant is not of the english kind.
    • isEstonian

      public boolean isEstonian()
      Is this variant instance of kind estonian?
    • estonian

      public EstonianAnalyzer estonian()
      Get the estonian variant value.
      Throws:
      IllegalStateException - if the current variant is not of the estonian kind.
    • isFingerprint

      public boolean isFingerprint()
      Is this variant instance of kind fingerprint?
    • fingerprint

      public FingerprintAnalyzer fingerprint()
      Get the fingerprint variant value.
      Throws:
      IllegalStateException - if the current variant is not of the fingerprint kind.
    • isFinnish

      public boolean isFinnish()
      Is this variant instance of kind finnish?
    • finnish

      public FinnishAnalyzer finnish()
      Get the finnish variant value.
      Throws:
      IllegalStateException - if the current variant is not of the finnish kind.
    • isFrench

      public boolean isFrench()
      Is this variant instance of kind french?
    • french

      public FrenchAnalyzer french()
      Get the french variant value.
      Throws:
      IllegalStateException - if the current variant is not of the french kind.
    • isGalician

      public boolean isGalician()
      Is this variant instance of kind galician?
    • galician

      public GalicianAnalyzer galician()
      Get the galician variant value.
      Throws:
      IllegalStateException - if the current variant is not of the galician kind.
    • isGerman

      public boolean isGerman()
      Is this variant instance of kind german?
    • german

      public GermanAnalyzer german()
      Get the german variant value.
      Throws:
      IllegalStateException - if the current variant is not of the german kind.
    • isGreek

      public boolean isGreek()
      Is this variant instance of kind greek?
    • greek

      public GreekAnalyzer greek()
      Get the greek variant value.
      Throws:
      IllegalStateException - if the current variant is not of the greek kind.
    • isHindi

      public boolean isHindi()
      Is this variant instance of kind hindi?
    • hindi

      public HindiAnalyzer hindi()
      Get the hindi variant value.
      Throws:
      IllegalStateException - if the current variant is not of the hindi kind.
    • isHungarian

      public boolean isHungarian()
      Is this variant instance of kind hungarian?
    • hungarian

      public HungarianAnalyzer hungarian()
      Get the hungarian variant value.
      Throws:
      IllegalStateException - if the current variant is not of the hungarian kind.
    • isIcuAnalyzer

      public boolean isIcuAnalyzer()
      Is this variant instance of kind icu_analyzer?
    • icuAnalyzer

      public IcuAnalyzer icuAnalyzer()
      Get the icu_analyzer variant value.
      Throws:
      IllegalStateException - if the current variant is not of the icu_analyzer kind.
    • isIndonesian

      public boolean isIndonesian()
      Is this variant instance of kind indonesian?
    • indonesian

      public IndonesianAnalyzer indonesian()
      Get the indonesian variant value.
      Throws:
      IllegalStateException - if the current variant is not of the indonesian kind.
    • isIrish

      public boolean isIrish()
      Is this variant instance of kind irish?
    • irish

      public IrishAnalyzer irish()
      Get the irish variant value.
      Throws:
      IllegalStateException - if the current variant is not of the irish kind.
    • isItalian

      public boolean isItalian()
      Is this variant instance of kind italian?
    • italian

      public ItalianAnalyzer italian()
      Get the italian variant value.
      Throws:
      IllegalStateException - if the current variant is not of the italian kind.
    • isKeyword

      public boolean isKeyword()
      Is this variant instance of kind keyword?
    • keyword

      public KeywordAnalyzer keyword()
      Get the keyword variant value.
      Throws:
      IllegalStateException - if the current variant is not of the keyword kind.
    • isKuromoji

      public boolean isKuromoji()
      Is this variant instance of kind kuromoji?
    • kuromoji

      public KuromojiAnalyzer kuromoji()
      Get the kuromoji variant value.
      Throws:
      IllegalStateException - if the current variant is not of the kuromoji kind.
    • isLatvian

      public boolean isLatvian()
      Is this variant instance of kind latvian?
    • latvian

      public LatvianAnalyzer latvian()
      Get the latvian variant value.
      Throws:
      IllegalStateException - if the current variant is not of the latvian kind.
    • isLithuanian

      public boolean isLithuanian()
      Is this variant instance of kind lithuanian?
    • lithuanian

      public LithuanianAnalyzer lithuanian()
      Get the lithuanian variant value.
      Throws:
      IllegalStateException - if the current variant is not of the lithuanian kind.
    • isNori

      public boolean isNori()
      Is this variant instance of kind nori?
    • nori

      public NoriAnalyzer nori()
      Get the nori variant value.
      Throws:
      IllegalStateException - if the current variant is not of the nori kind.
    • isNorwegian

      public boolean isNorwegian()
      Is this variant instance of kind norwegian?
    • norwegian

      public NorwegianAnalyzer norwegian()
      Get the norwegian variant value.
      Throws:
      IllegalStateException - if the current variant is not of the norwegian kind.
    • isPattern

      public boolean isPattern()
      Is this variant instance of kind pattern?
    • pattern

      public PatternAnalyzer pattern()
      Get the pattern variant value.
      Throws:
      IllegalStateException - if the current variant is not of the pattern kind.
    • isPersian

      public boolean isPersian()
      Is this variant instance of kind persian?
    • persian

      public PersianAnalyzer persian()
      Get the persian variant value.
      Throws:
      IllegalStateException - if the current variant is not of the persian kind.
    • isPortuguese

      public boolean isPortuguese()
      Is this variant instance of kind portuguese?
    • portuguese

      public PortugueseAnalyzer portuguese()
      Get the portuguese variant value.
      Throws:
      IllegalStateException - if the current variant is not of the portuguese kind.
    • isRomanian

      public boolean isRomanian()
      Is this variant instance of kind romanian?
    • romanian

      public RomanianAnalyzer romanian()
      Get the romanian variant value.
      Throws:
      IllegalStateException - if the current variant is not of the romanian kind.
    • isRussian

      public boolean isRussian()
      Is this variant instance of kind russian?
    • russian

      public RussianAnalyzer russian()
      Get the russian variant value.
      Throws:
      IllegalStateException - if the current variant is not of the russian kind.
    • isSerbian

      public boolean isSerbian()
      Is this variant instance of kind serbian?
    • serbian

      public SerbianAnalyzer serbian()
      Get the serbian variant value.
      Throws:
      IllegalStateException - if the current variant is not of the serbian kind.
    • isSimple

      public boolean isSimple()
      Is this variant instance of kind simple?
    • simple

      public SimpleAnalyzer simple()
      Get the simple variant value.
      Throws:
      IllegalStateException - if the current variant is not of the simple kind.
    • isSnowball

      public boolean isSnowball()
      Is this variant instance of kind snowball?
    • snowball

      public SnowballAnalyzer snowball()
      Get the snowball variant value.
      Throws:
      IllegalStateException - if the current variant is not of the snowball kind.
    • isSorani

      public boolean isSorani()
      Is this variant instance of kind sorani?
    • sorani

      public SoraniAnalyzer sorani()
      Get the sorani variant value.
      Throws:
      IllegalStateException - if the current variant is not of the sorani kind.
    • isSpanish

      public boolean isSpanish()
      Is this variant instance of kind spanish?
    • spanish

      public SpanishAnalyzer spanish()
      Get the spanish variant value.
      Throws:
      IllegalStateException - if the current variant is not of the spanish kind.
    • isStandard

      public boolean isStandard()
      Is this variant instance of kind standard?
    • standard

      public StandardAnalyzer standard()
      Get the standard variant value.
      Throws:
      IllegalStateException - if the current variant is not of the standard kind.
    • isStop

      public boolean isStop()
      Is this variant instance of kind stop?
    • stop

      public StopAnalyzer stop()
      Get the stop variant value.
      Throws:
      IllegalStateException - if the current variant is not of the stop kind.
    • isSwedish

      public boolean isSwedish()
      Is this variant instance of kind swedish?
    • swedish

      public SwedishAnalyzer swedish()
      Get the swedish variant value.
      Throws:
      IllegalStateException - if the current variant is not of the swedish kind.
    • isThai

      public boolean isThai()
      Is this variant instance of kind thai?
    • thai

      public ThaiAnalyzer thai()
      Get the thai variant value.
      Throws:
      IllegalStateException - if the current variant is not of the thai kind.
    • isTurkish

      public boolean isTurkish()
      Is this variant instance of kind turkish?
    • turkish

      public TurkishAnalyzer turkish()
      Get the turkish variant value.
      Throws:
      IllegalStateException - if the current variant is not of the turkish kind.
    • isWhitespace

      public boolean isWhitespace()
      Is this variant instance of kind whitespace?
    • whitespace

      public WhitespaceAnalyzer whitespace()
      Get the whitespace variant value.
      Throws:
      IllegalStateException - if the current variant is not of the whitespace kind.
    • _isCustom

      public boolean _isCustom()
      Is this a custom Analyzer defined by a plugin?
    • _customKind

      @Nullable public final String _customKind()
      Get the actual kind when _kind() equals Analyzer.Kind._Custom (plugin-defined variant).
      Specified by:
      _customKind in interface OpenTaggedUnion<Analyzer.Kind,Object>
    • _custom

      public JsonData _custom()
      Get the custom plugin-defined variant value.
      Throws:
      IllegalStateException - if the current variant is not Analyzer.Kind._Custom.
    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Specified by:
      serialize in interface JsonpSerializable
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupAnalyzerDeserializer

      protected static void setupAnalyzerDeserializer(ObjectDeserializer<Analyzer.Builder> op)