Class TokenFilterDefinition
java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.TokenFilterDefinition
- All Implemented Interfaces:
JsonpSerializable,OpenTaggedUnion<TokenFilterDefinition.Kind,,Object> TaggedUnion<TokenFilterDefinition.Kind,Object>
@JsonpDeserializable
public class TokenFilterDefinition
extends Object
implements OpenTaggedUnion<TokenFilterDefinition.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTokenFilterDefinition(String kind, JsonData value) Build a custom plugin-definedTokenFilterDefinition, given its kind and some JSON data -
Method Summary
Modifier and TypeMethodDescription_custom()Get the custom plugin-defined variant value.final StringGet the actual kind when_kind()equalsTokenFilterDefinition.Kind._Custom(plugin-defined variant).final Object_get()booleanIs this a customTokenFilterDefinitiondefined by a plugin?_kind()Get the of the kind of variant held by this object.Get theasciifoldingvariant value.Get thecommon_gramsvariant value.Get theconditionvariant value.Get thedelimited_payloadvariant value.Get thedictionary_decompoundervariant value.Get theedge_ngramvariant value.elision()Get theelisionvariant value.Get thefingerprintvariant value.hunspell()Get thehunspellvariant value.Get thehyphenation_decompoundervariant value.Get theicu_collationvariant value.Get theicu_foldingvariant value.Get theicu_normalizervariant value.Get theicu_tokenizervariant value.Get theicu_transformvariant value.booleanIs this variant instance of kindasciifolding?booleanIs this variant instance of kindcommon_grams?booleanIs this variant instance of kindcondition?booleanIs this variant instance of kinddelimited_payload?booleanIs this variant instance of kinddictionary_decompounder?booleanIs this variant instance of kindedge_ngram?booleanIs this variant instance of kindelision?booleanIs this variant instance of kindfingerprint?booleanIs this variant instance of kindhunspell?booleanIs this variant instance of kindhyphenation_decompounder?booleanIs this variant instance of kindicu_collation?booleanIs this variant instance of kindicu_folding?booleanIs this variant instance of kindicu_normalizer?booleanIs this variant instance of kindicu_tokenizer?booleanIs this variant instance of kindicu_transform?booleanisKeep()Is this variant instance of kindkeep?booleanIs this variant instance of kindkeep_types?booleanIs this variant instance of kindkeyword_marker?booleanisKstem()Is this variant instance of kindkstem?booleanIs this variant instance of kindkuromoji_part_of_speech?booleanIs this variant instance of kindkuromoji_readingform?booleanIs this variant instance of kindkuromoji_stemmer?booleanisLength()Is this variant instance of kindlength?booleanisLimit()Is this variant instance of kindlimit?booleanIs this variant instance of kindlowercase?booleanIs this variant instance of kindmultiplexer?booleanisNgram()Is this variant instance of kindngram?booleanIs this variant instance of kindnori_part_of_speech?booleanIs this variant instance of kindpattern_capture?booleanIs this variant instance of kindpattern_replace?booleanIs this variant instance of kindphonetic?booleanIs this variant instance of kindporter_stem?booleanIs this variant instance of kindpredicate_token_filter?booleanIs this variant instance of kindremove_duplicates?booleanIs this variant instance of kindreverse?booleanIs this variant instance of kindshingle?booleanIs this variant instance of kindsnowball?booleanIs this variant instance of kindstemmer?booleanIs this variant instance of kindstemmer_override?booleanisStop()Is this variant instance of kindstop?booleanIs this variant instance of kindsynonym?booleanIs this variant instance of kindsynonym_graph?booleanisTrim()Is this variant instance of kindtrim?booleanIs this variant instance of kindtruncate?booleanisUnique()Is this variant instance of kindunique?booleanIs this variant instance of kinduppercase?booleanIs this variant instance of kindword_delimiter?booleanIs this variant instance of kindword_delimiter_graph?keep()Get thekeepvariant value.Get thekeep_typesvariant value.Get thekeyword_markervariant value.kstem()Get thekstemvariant value.Get thekuromoji_part_of_speechvariant value.Get thekuromoji_readingformvariant value.Get thekuromoji_stemmervariant value.length()Get thelengthvariant value.limit()Get thelimitvariant value.Get thelowercasevariant value.Get themultiplexervariant value.ngram()Get thengramvariant value.Get thenori_part_of_speechvariant value.static TokenFilterDefinitionGet thepattern_capturevariant value.Get thepattern_replacevariant value.phonetic()Get thephoneticvariant value.Get theporter_stemvariant value.Get thepredicate_token_filtervariant value.Get theremove_duplicatesvariant value.reverse()Get thereversevariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidshingle()Get theshinglevariant value.snowball()Get thesnowballvariant value.stemmer()Get thestemmervariant value.Get thestemmer_overridevariant value.stop()Get thestopvariant value.synonym()Get thesynonymvariant value.Get thesynonym_graphvariant value.toString()trim()Get thetrimvariant value.truncate()Get thetruncatevariant value.unique()Get theuniquevariant value.Get theuppercasevariant value.Get theword_delimitervariant value.Get theword_delimiter_graphvariant value.
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
TokenFilterDefinition
-
TokenFilterDefinition
Build a custom plugin-definedTokenFilterDefinition, given its kind and some JSON data
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<TokenFilterDefinition.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<TokenFilterDefinition.Kind,Object>
-
of
public static TokenFilterDefinition of(Function<TokenFilterDefinition.Builder, ObjectBuilder<TokenFilterDefinition>> fn) -
isAsciifolding
public boolean isAsciifolding()Is this variant instance of kindasciifolding? -
asciifolding
Get theasciifoldingvariant value.- Throws:
IllegalStateException- if the current variant is not of theasciifoldingkind.
-
isCommonGrams
public boolean isCommonGrams()Is this variant instance of kindcommon_grams? -
commonGrams
Get thecommon_gramsvariant value.- Throws:
IllegalStateException- if the current variant is not of thecommon_gramskind.
-
isCondition
public boolean isCondition()Is this variant instance of kindcondition? -
condition
Get theconditionvariant value.- Throws:
IllegalStateException- if the current variant is not of theconditionkind.
-
isDelimitedPayload
public boolean isDelimitedPayload()Is this variant instance of kinddelimited_payload? -
delimitedPayload
Get thedelimited_payloadvariant value.- Throws:
IllegalStateException- if the current variant is not of thedelimited_payloadkind.
-
isDictionaryDecompounder
public boolean isDictionaryDecompounder()Is this variant instance of kinddictionary_decompounder? -
dictionaryDecompounder
Get thedictionary_decompoundervariant value.- Throws:
IllegalStateException- if the current variant is not of thedictionary_decompounderkind.
-
isEdgeNgram
public boolean isEdgeNgram()Is this variant instance of kindedge_ngram? -
edgeNgram
Get theedge_ngramvariant value.- Throws:
IllegalStateException- if the current variant is not of theedge_ngramkind.
-
isElision
public boolean isElision()Is this variant instance of kindelision? -
elision
Get theelisionvariant value.- Throws:
IllegalStateException- if the current variant is not of theelisionkind.
-
isFingerprint
public boolean isFingerprint()Is this variant instance of kindfingerprint? -
fingerprint
Get thefingerprintvariant value.- Throws:
IllegalStateException- if the current variant is not of thefingerprintkind.
-
isHunspell
public boolean isHunspell()Is this variant instance of kindhunspell? -
hunspell
Get thehunspellvariant value.- Throws:
IllegalStateException- if the current variant is not of thehunspellkind.
-
isHyphenationDecompounder
public boolean isHyphenationDecompounder()Is this variant instance of kindhyphenation_decompounder? -
hyphenationDecompounder
Get thehyphenation_decompoundervariant value.- Throws:
IllegalStateException- if the current variant is not of thehyphenation_decompounderkind.
-
isIcuCollation
public boolean isIcuCollation()Is this variant instance of kindicu_collation? -
icuCollation
Get theicu_collationvariant value.- Throws:
IllegalStateException- if the current variant is not of theicu_collationkind.
-
isIcuFolding
public boolean isIcuFolding()Is this variant instance of kindicu_folding? -
icuFolding
Get theicu_foldingvariant value.- Throws:
IllegalStateException- if the current variant is not of theicu_foldingkind.
-
isIcuNormalizer
public boolean isIcuNormalizer()Is this variant instance of kindicu_normalizer? -
icuNormalizer
Get theicu_normalizervariant value.- Throws:
IllegalStateException- if the current variant is not of theicu_normalizerkind.
-
isIcuTokenizer
public boolean isIcuTokenizer()Is this variant instance of kindicu_tokenizer? -
icuTokenizer
Get theicu_tokenizervariant value.- Throws:
IllegalStateException- if the current variant is not of theicu_tokenizerkind.
-
isIcuTransform
public boolean isIcuTransform()Is this variant instance of kindicu_transform? -
icuTransform
Get theicu_transformvariant value.- Throws:
IllegalStateException- if the current variant is not of theicu_transformkind.
-
isKstem
public boolean isKstem()Is this variant instance of kindkstem? -
kstem
Get thekstemvariant value.- Throws:
IllegalStateException- if the current variant is not of thekstemkind.
-
isKeepTypes
public boolean isKeepTypes()Is this variant instance of kindkeep_types? -
keepTypes
Get thekeep_typesvariant value.- Throws:
IllegalStateException- if the current variant is not of thekeep_typeskind.
-
isKeep
public boolean isKeep()Is this variant instance of kindkeep? -
keep
Get thekeepvariant value.- Throws:
IllegalStateException- if the current variant is not of thekeepkind.
-
isKeywordMarker
public boolean isKeywordMarker()Is this variant instance of kindkeyword_marker? -
keywordMarker
Get thekeyword_markervariant value.- Throws:
IllegalStateException- if the current variant is not of thekeyword_markerkind.
-
isKuromojiPartOfSpeech
public boolean isKuromojiPartOfSpeech()Is this variant instance of kindkuromoji_part_of_speech? -
kuromojiPartOfSpeech
Get thekuromoji_part_of_speechvariant value.- Throws:
IllegalStateException- if the current variant is not of thekuromoji_part_of_speechkind.
-
isKuromojiReadingform
public boolean isKuromojiReadingform()Is this variant instance of kindkuromoji_readingform? -
kuromojiReadingform
Get thekuromoji_readingformvariant value.- Throws:
IllegalStateException- if the current variant is not of thekuromoji_readingformkind.
-
isKuromojiStemmer
public boolean isKuromojiStemmer()Is this variant instance of kindkuromoji_stemmer? -
kuromojiStemmer
Get thekuromoji_stemmervariant value.- Throws:
IllegalStateException- if the current variant is not of thekuromoji_stemmerkind.
-
isLength
public boolean isLength()Is this variant instance of kindlength? -
length
Get thelengthvariant value.- Throws:
IllegalStateException- if the current variant is not of thelengthkind.
-
isLimit
public boolean isLimit()Is this variant instance of kindlimit? -
limit
Get thelimitvariant value.- Throws:
IllegalStateException- if the current variant is not of thelimitkind.
-
isLowercase
public boolean isLowercase()Is this variant instance of kindlowercase? -
lowercase
Get thelowercasevariant value.- Throws:
IllegalStateException- if the current variant is not of thelowercasekind.
-
isMultiplexer
public boolean isMultiplexer()Is this variant instance of kindmultiplexer? -
multiplexer
Get themultiplexervariant value.- Throws:
IllegalStateException- if the current variant is not of themultiplexerkind.
-
isNgram
public boolean isNgram()Is this variant instance of kindngram? -
ngram
Get thengramvariant value.- Throws:
IllegalStateException- if the current variant is not of thengramkind.
-
isNoriPartOfSpeech
public boolean isNoriPartOfSpeech()Is this variant instance of kindnori_part_of_speech? -
noriPartOfSpeech
Get thenori_part_of_speechvariant value.- Throws:
IllegalStateException- if the current variant is not of thenori_part_of_speechkind.
-
isPatternCapture
public boolean isPatternCapture()Is this variant instance of kindpattern_capture? -
patternCapture
Get thepattern_capturevariant value.- Throws:
IllegalStateException- if the current variant is not of thepattern_capturekind.
-
isPatternReplace
public boolean isPatternReplace()Is this variant instance of kindpattern_replace? -
patternReplace
Get thepattern_replacevariant value.- Throws:
IllegalStateException- if the current variant is not of thepattern_replacekind.
-
isPhonetic
public boolean isPhonetic()Is this variant instance of kindphonetic? -
phonetic
Get thephoneticvariant value.- Throws:
IllegalStateException- if the current variant is not of thephonetickind.
-
isPorterStem
public boolean isPorterStem()Is this variant instance of kindporter_stem? -
porterStem
Get theporter_stemvariant value.- Throws:
IllegalStateException- if the current variant is not of theporter_stemkind.
-
isPredicateTokenFilter
public boolean isPredicateTokenFilter()Is this variant instance of kindpredicate_token_filter? -
predicateTokenFilter
Get thepredicate_token_filtervariant value.- Throws:
IllegalStateException- if the current variant is not of thepredicate_token_filterkind.
-
isRemoveDuplicates
public boolean isRemoveDuplicates()Is this variant instance of kindremove_duplicates? -
removeDuplicates
Get theremove_duplicatesvariant value.- Throws:
IllegalStateException- if the current variant is not of theremove_duplicateskind.
-
isReverse
public boolean isReverse()Is this variant instance of kindreverse? -
reverse
Get thereversevariant value.- Throws:
IllegalStateException- if the current variant is not of thereversekind.
-
isShingle
public boolean isShingle()Is this variant instance of kindshingle? -
shingle
Get theshinglevariant value.- Throws:
IllegalStateException- if the current variant is not of theshinglekind.
-
isSnowball
public boolean isSnowball()Is this variant instance of kindsnowball? -
snowball
Get thesnowballvariant value.- Throws:
IllegalStateException- if the current variant is not of thesnowballkind.
-
isStemmerOverride
public boolean isStemmerOverride()Is this variant instance of kindstemmer_override? -
stemmerOverride
Get thestemmer_overridevariant value.- Throws:
IllegalStateException- if the current variant is not of thestemmer_overridekind.
-
isStemmer
public boolean isStemmer()Is this variant instance of kindstemmer? -
stemmer
Get thestemmervariant value.- Throws:
IllegalStateException- if the current variant is not of thestemmerkind.
-
isStop
public boolean isStop()Is this variant instance of kindstop? -
stop
Get thestopvariant value.- Throws:
IllegalStateException- if the current variant is not of thestopkind.
-
isSynonymGraph
public boolean isSynonymGraph()Is this variant instance of kindsynonym_graph? -
synonymGraph
Get thesynonym_graphvariant value.- Throws:
IllegalStateException- if the current variant is not of thesynonym_graphkind.
-
isSynonym
public boolean isSynonym()Is this variant instance of kindsynonym? -
synonym
Get thesynonymvariant value.- Throws:
IllegalStateException- if the current variant is not of thesynonymkind.
-
isTrim
public boolean isTrim()Is this variant instance of kindtrim? -
trim
Get thetrimvariant value.- Throws:
IllegalStateException- if the current variant is not of thetrimkind.
-
isTruncate
public boolean isTruncate()Is this variant instance of kindtruncate? -
truncate
Get thetruncatevariant value.- Throws:
IllegalStateException- if the current variant is not of thetruncatekind.
-
isUnique
public boolean isUnique()Is this variant instance of kindunique? -
unique
Get theuniquevariant value.- Throws:
IllegalStateException- if the current variant is not of theuniquekind.
-
isUppercase
public boolean isUppercase()Is this variant instance of kinduppercase? -
uppercase
Get theuppercasevariant value.- Throws:
IllegalStateException- if the current variant is not of theuppercasekind.
-
isWordDelimiterGraph
public boolean isWordDelimiterGraph()Is this variant instance of kindword_delimiter_graph? -
wordDelimiterGraph
Get theword_delimiter_graphvariant value.- Throws:
IllegalStateException- if the current variant is not of theword_delimiter_graphkind.
-
isWordDelimiter
public boolean isWordDelimiter()Is this variant instance of kindword_delimiter? -
wordDelimiter
Get theword_delimitervariant value.- Throws:
IllegalStateException- if the current variant is not of theword_delimiterkind.
-
_isCustom
public boolean _isCustom()Is this a customTokenFilterDefinitiondefined by a plugin? -
_customKind
Get the actual kind when_kind()equalsTokenFilterDefinition.Kind._Custom(plugin-defined variant).- Specified by:
_customKindin interfaceOpenTaggedUnion<TokenFilterDefinition.Kind,Object>
-
_custom
Get the custom plugin-defined variant value.- Throws:
IllegalStateException- if the current variant is notTokenFilterDefinition.Kind._Custom.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupTokenFilterDefinitionDeserializer
protected static void setupTokenFilterDefinitionDeserializer(ObjectDeserializer<TokenFilterDefinition.Builder> op)
-