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

@JsonpDeserializable
public class TokenFilter
extends java.lang.Object
implements TaggedUnion<JsonpSerializable>, JsonpSerializable
  • Field Details

  • Constructor Details

  • Method Details

    • _type

      public java.lang.String _type()
      Description copied from interface: TaggedUnion
      Get the of the type of the variant held by this union object.
      Specified by:
      _type in interface TaggedUnion<JsonpSerializable>
      Returns:
      the variant type
    • _get

      public JsonpSerializable _get()
      Specified by:
      _get in interface TaggedUnion<JsonpSerializable>
    • asciifolding

      public AsciiFoldingTokenFilter asciifolding()
      Get the asciifolding variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the asciifolding kind.
    • commonGrams

      public CommonGramsTokenFilter commonGrams()
      Get the common_grams variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the common_grams kind.
    • condition

      public ConditionTokenFilter condition()
      Get the condition variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the condition kind.
    • delimitedPayload

      public DelimitedPayloadTokenFilter delimitedPayload()
      Get the delimited_payload variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the delimited_payload kind.
    • edgeNgram

      public EdgeNGramTokenFilter edgeNgram()
      Get the edge_ngram variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the edge_ngram kind.
    • elision

      public ElisionTokenFilter elision()
      Get the elision variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the elision kind.
    • fingerprint

      public FingerprintTokenFilter fingerprint()
      Get the fingerprint variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the fingerprint kind.
    • hunspell

      public HunspellTokenFilter hunspell()
      Get the hunspell variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the hunspell kind.
    • hyphenationDecompounder

      public HyphenationDecompounderTokenFilter hyphenationDecompounder()
      Get the hyphenation_decompounder variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the hyphenation_decompounder kind.
    • kstem

      public KStemTokenFilter kstem()
      Get the kstem variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the kstem kind.
    • keepTypes

      public KeepTypesTokenFilter keepTypes()
      Get the keep_types variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the keep_types kind.
    • keep

      public KeepWordsTokenFilter keep()
      Get the keep variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the keep kind.
    • keywordMarker

      public KeywordMarkerTokenFilter keywordMarker()
      Get the keyword_marker variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the keyword_marker kind.
    • kuromojiPartOfSpeech

      public KuromojiPartOfSpeechTokenFilter kuromojiPartOfSpeech()
      Get the kuromoji_part_of_speech variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the kuromoji_part_of_speech kind.
    • kuromojiReadingform

      public KuromojiReadingFormTokenFilter kuromojiReadingform()
      Get the kuromoji_readingform variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the kuromoji_readingform kind.
    • kuromojiStemmer

      public KuromojiStemmerTokenFilter kuromojiStemmer()
      Get the kuromoji_stemmer variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the kuromoji_stemmer kind.
    • length

      public LengthTokenFilter length()
      Get the length variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the length kind.
    • limit

      Get the limit variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the limit kind.
    • lowercase

      public LowercaseTokenFilter lowercase()
      Get the lowercase variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the lowercase kind.
    • multiplexer

      public MultiplexerTokenFilter multiplexer()
      Get the multiplexer variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the multiplexer kind.
    • ngram

      public NGramTokenFilter ngram()
      Get the ngram variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the ngram kind.
    • noriPartOfSpeech

      public NoriPartOfSpeechTokenFilter noriPartOfSpeech()
      Get the nori_part_of_speech variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the nori_part_of_speech kind.
    • patternCapture

      public PatternCaptureTokenFilter patternCapture()
      Get the pattern_capture variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the pattern_capture kind.
    • patternReplace

      public PatternReplaceTokenFilter patternReplace()
      Get the pattern_replace variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the pattern_replace kind.
    • porterStem

      public PorterStemTokenFilter porterStem()
      Get the porter_stem variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the porter_stem kind.
    • predicateTokenFilter

      public PredicateTokenFilter predicateTokenFilter()
      Get the predicate_token_filter variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the predicate_token_filter kind.
    • removeDuplicates

      public RemoveDuplicatesTokenFilter removeDuplicates()
      Get the remove_duplicates variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the remove_duplicates kind.
    • reverse

      public ReverseTokenFilter reverse()
      Get the reverse variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the reverse kind.
    • shingle

      public ShingleTokenFilter shingle()
      Get the shingle variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the shingle kind.
    • snowball

      public SnowballTokenFilter snowball()
      Get the snowball variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the snowball kind.
    • stemmerOverride

      public StemmerOverrideTokenFilter stemmerOverride()
      Get the stemmer_override variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the stemmer_override kind.
    • stemmer

      public StemmerTokenFilter stemmer()
      Get the stemmer variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the stemmer kind.
    • stop

      public StopTokenFilter stop()
      Get the stop variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the stop kind.
    • synonymGraph

      public SynonymGraphTokenFilter synonymGraph()
      Get the synonym_graph variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the synonym_graph kind.
    • synonym

      public SynonymTokenFilter synonym()
      Get the synonym variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the synonym kind.
    • trim

      public TrimTokenFilter trim()
      Get the trim variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the trim kind.
    • truncate

      public TruncateTokenFilter truncate()
      Get the truncate variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the truncate kind.
    • unique

      public UniqueTokenFilter unique()
      Get the unique variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the unique kind.
    • uppercase

      public UppercaseTokenFilter uppercase()
      Get the uppercase variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the uppercase kind.
    • wordDelimiterGraph

      public WordDelimiterGraphTokenFilter wordDelimiterGraph()
      Get the word_delimiter_graph variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the word_delimiter_graph kind.
    • wordDelimiter

      public WordDelimiterTokenFilter wordDelimiter()
      Get the word_delimiter variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the word_delimiter kind.
    • serialize

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

      protected static void setupTokenFilterDeserializer​(DelegatingDeserializer<TokenFilter.Builder> op)