Class TokenFilter
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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTokenFilter.Builder -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TokenFilter>_DESERIALIZERstatic java.lang.StringASCIIFOLDINGstatic java.lang.StringCOMMON_GRAMSstatic java.lang.StringCONDITIONstatic java.lang.StringDELIMITED_PAYLOADstatic java.lang.StringEDGE_NGRAMstatic java.lang.StringELISIONstatic java.lang.StringFINGERPRINTstatic java.lang.StringHUNSPELLstatic java.lang.StringHYPHENATION_DECOMPOUNDERstatic java.lang.StringKEEPstatic java.lang.StringKEEP_TYPESstatic java.lang.StringKEYWORD_MARKERstatic java.lang.StringKSTEMstatic java.lang.StringKUROMOJI_PART_OF_SPEECHstatic java.lang.StringKUROMOJI_READINGFORMstatic java.lang.StringKUROMOJI_STEMMERstatic java.lang.StringLENGTHstatic java.lang.StringLIMITstatic java.lang.StringLOWERCASEstatic java.lang.StringMULTIPLEXERstatic java.lang.StringNGRAMstatic java.lang.StringNORI_PART_OF_SPEECHstatic java.lang.StringPATTERN_CAPTUREstatic java.lang.StringPATTERN_REPLACEstatic java.lang.StringPORTER_STEMstatic java.lang.StringPREDICATE_TOKEN_FILTERstatic java.lang.StringREMOVE_DUPLICATESstatic java.lang.StringREVERSEstatic java.lang.StringSHINGLEstatic java.lang.StringSNOWBALLstatic java.lang.StringSTEMMERstatic java.lang.StringSTEMMER_OVERRIDEstatic java.lang.StringSTOPstatic java.lang.StringSYNONYMstatic java.lang.StringSYNONYM_GRAPHstatic java.lang.StringTRIMstatic java.lang.StringTRUNCATEstatic java.lang.StringUNIQUEstatic java.lang.StringUPPERCASEstatic java.lang.StringWORD_DELIMITERstatic java.lang.StringWORD_DELIMITER_GRAPH -
Constructor Summary
Constructors Constructor Description TokenFilter(TokenFilterVariant value)TokenFilter(ObjectBuilder<T> builder)TokenFilter(java.util.function.Function<TokenFilter.Builder,TokenFilter.Builder> fn) -
Method Summary
Modifier and Type Method Description JsonpSerializable_get()java.lang.String_type()Get the of the type of the variant held by this union object.AsciiFoldingTokenFilterasciifolding()Get theasciifoldingvariant value.CommonGramsTokenFiltercommonGrams()Get thecommon_gramsvariant value.ConditionTokenFiltercondition()Get theconditionvariant value.DelimitedPayloadTokenFilterdelimitedPayload()Get thedelimited_payloadvariant value.EdgeNGramTokenFilteredgeNgram()Get theedge_ngramvariant value.ElisionTokenFilterelision()Get theelisionvariant value.FingerprintTokenFilterfingerprint()Get thefingerprintvariant value.HunspellTokenFilterhunspell()Get thehunspellvariant value.HyphenationDecompounderTokenFilterhyphenationDecompounder()Get thehyphenation_decompoundervariant value.KeepWordsTokenFilterkeep()Get thekeepvariant value.KeepTypesTokenFilterkeepTypes()Get thekeep_typesvariant value.KeywordMarkerTokenFilterkeywordMarker()Get thekeyword_markervariant value.KStemTokenFilterkstem()Get thekstemvariant value.KuromojiPartOfSpeechTokenFilterkuromojiPartOfSpeech()Get thekuromoji_part_of_speechvariant value.KuromojiReadingFormTokenFilterkuromojiReadingform()Get thekuromoji_readingformvariant value.KuromojiStemmerTokenFilterkuromojiStemmer()Get thekuromoji_stemmervariant value.LengthTokenFilterlength()Get thelengthvariant value.LimitTokenCountTokenFilterlimit()Get thelimitvariant value.LowercaseTokenFilterlowercase()Get thelowercasevariant value.MultiplexerTokenFiltermultiplexer()Get themultiplexervariant value.NGramTokenFilterngram()Get thengramvariant value.NoriPartOfSpeechTokenFilternoriPartOfSpeech()Get thenori_part_of_speechvariant value.PatternCaptureTokenFilterpatternCapture()Get thepattern_capturevariant value.PatternReplaceTokenFilterpatternReplace()Get thepattern_replacevariant value.PorterStemTokenFilterporterStem()Get theporter_stemvariant value.PredicateTokenFilterpredicateTokenFilter()Get thepredicate_token_filtervariant value.RemoveDuplicatesTokenFilterremoveDuplicates()Get theremove_duplicatesvariant value.ReverseTokenFilterreverse()Get thereversevariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupTokenFilterDeserializer(DelegatingDeserializer<TokenFilter.Builder> op)ShingleTokenFiltershingle()Get theshinglevariant value.SnowballTokenFiltersnowball()Get thesnowballvariant value.StemmerTokenFilterstemmer()Get thestemmervariant value.StemmerOverrideTokenFilterstemmerOverride()Get thestemmer_overridevariant value.StopTokenFilterstop()Get thestopvariant value.SynonymTokenFiltersynonym()Get thesynonymvariant value.SynonymGraphTokenFiltersynonymGraph()Get thesynonym_graphvariant value.TrimTokenFiltertrim()Get thetrimvariant value.TruncateTokenFiltertruncate()Get thetruncatevariant value.UniqueTokenFilterunique()Get theuniquevariant value.UppercaseTokenFilteruppercase()Get theuppercasevariant value.WordDelimiterTokenFilterwordDelimiter()Get theword_delimitervariant value.WordDelimiterGraphTokenFilterwordDelimiterGraph()Get theword_delimiter_graphvariant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
ASCIIFOLDING
public static final java.lang.String ASCIIFOLDING- See Also:
- Constant Field Values
-
COMMON_GRAMS
public static final java.lang.String COMMON_GRAMS- See Also:
- Constant Field Values
-
CONDITION
public static final java.lang.String CONDITION- See Also:
- Constant Field Values
-
DELIMITED_PAYLOAD
public static final java.lang.String DELIMITED_PAYLOAD- See Also:
- Constant Field Values
-
EDGE_NGRAM
public static final java.lang.String EDGE_NGRAM- See Also:
- Constant Field Values
-
ELISION
public static final java.lang.String ELISION- See Also:
- Constant Field Values
-
FINGERPRINT
public static final java.lang.String FINGERPRINT- See Also:
- Constant Field Values
-
HUNSPELL
public static final java.lang.String HUNSPELL- See Also:
- Constant Field Values
-
HYPHENATION_DECOMPOUNDER
public static final java.lang.String HYPHENATION_DECOMPOUNDER- See Also:
- Constant Field Values
-
KSTEM
public static final java.lang.String KSTEM- See Also:
- Constant Field Values
-
KEEP_TYPES
public static final java.lang.String KEEP_TYPES- See Also:
- Constant Field Values
-
KEEP
public static final java.lang.String KEEP- See Also:
- Constant Field Values
-
KEYWORD_MARKER
public static final java.lang.String KEYWORD_MARKER- See Also:
- Constant Field Values
-
KUROMOJI_PART_OF_SPEECH
public static final java.lang.String KUROMOJI_PART_OF_SPEECH- See Also:
- Constant Field Values
-
KUROMOJI_READINGFORM
public static final java.lang.String KUROMOJI_READINGFORM- See Also:
- Constant Field Values
-
KUROMOJI_STEMMER
public static final java.lang.String KUROMOJI_STEMMER- See Also:
- Constant Field Values
-
LENGTH
public static final java.lang.String LENGTH- See Also:
- Constant Field Values
-
LIMIT
public static final java.lang.String LIMIT- See Also:
- Constant Field Values
-
LOWERCASE
public static final java.lang.String LOWERCASE- See Also:
- Constant Field Values
-
MULTIPLEXER
public static final java.lang.String MULTIPLEXER- See Also:
- Constant Field Values
-
NGRAM
public static final java.lang.String NGRAM- See Also:
- Constant Field Values
-
NORI_PART_OF_SPEECH
public static final java.lang.String NORI_PART_OF_SPEECH- See Also:
- Constant Field Values
-
PATTERN_CAPTURE
public static final java.lang.String PATTERN_CAPTURE- See Also:
- Constant Field Values
-
PATTERN_REPLACE
public static final java.lang.String PATTERN_REPLACE- See Also:
- Constant Field Values
-
PORTER_STEM
public static final java.lang.String PORTER_STEM- See Also:
- Constant Field Values
-
PREDICATE_TOKEN_FILTER
public static final java.lang.String PREDICATE_TOKEN_FILTER- See Also:
- Constant Field Values
-
REMOVE_DUPLICATES
public static final java.lang.String REMOVE_DUPLICATES- See Also:
- Constant Field Values
-
REVERSE
public static final java.lang.String REVERSE- See Also:
- Constant Field Values
-
SHINGLE
public static final java.lang.String SHINGLE- See Also:
- Constant Field Values
-
SNOWBALL
public static final java.lang.String SNOWBALL- See Also:
- Constant Field Values
-
STEMMER_OVERRIDE
public static final java.lang.String STEMMER_OVERRIDE- See Also:
- Constant Field Values
-
STEMMER
public static final java.lang.String STEMMER- See Also:
- Constant Field Values
-
STOP
public static final java.lang.String STOP- See Also:
- Constant Field Values
-
SYNONYM_GRAPH
public static final java.lang.String SYNONYM_GRAPH- See Also:
- Constant Field Values
-
SYNONYM
public static final java.lang.String SYNONYM- See Also:
- Constant Field Values
-
TRIM
public static final java.lang.String TRIM- See Also:
- Constant Field Values
-
TRUNCATE
public static final java.lang.String TRUNCATE- See Also:
- Constant Field Values
-
UNIQUE
public static final java.lang.String UNIQUE- See Also:
- Constant Field Values
-
UPPERCASE
public static final java.lang.String UPPERCASE- See Also:
- Constant Field Values
-
WORD_DELIMITER_GRAPH
public static final java.lang.String WORD_DELIMITER_GRAPH- See Also:
- Constant Field Values
-
WORD_DELIMITER
public static final java.lang.String WORD_DELIMITER- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
TokenFilter
-
TokenFilter
-
TokenFilter
-
-
Method Details
-
_type
public java.lang.String _type()Description copied from interface:TaggedUnionGet the of the type of the variant held by this union object.- Specified by:
_typein interfaceTaggedUnion<JsonpSerializable>- Returns:
- the variant type
-
_get
- Specified by:
_getin interfaceTaggedUnion<JsonpSerializable>
-
asciifolding
Get theasciifoldingvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theasciifoldingkind.
-
commonGrams
Get thecommon_gramsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecommon_gramskind.
-
condition
Get theconditionvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theconditionkind.
-
delimitedPayload
Get thedelimited_payloadvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedelimited_payloadkind.
-
edgeNgram
Get theedge_ngramvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theedge_ngramkind.
-
elision
Get theelisionvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theelisionkind.
-
fingerprint
Get thefingerprintvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefingerprintkind.
-
hunspell
Get thehunspellvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thehunspellkind.
-
hyphenationDecompounder
Get thehyphenation_decompoundervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thehyphenation_decompounderkind.
-
kstem
Get thekstemvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thekstemkind.
-
keepTypes
Get thekeep_typesvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thekeep_typeskind.
-
keep
Get thekeepvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thekeepkind.
-
keywordMarker
Get thekeyword_markervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thekeyword_markerkind.
-
kuromojiPartOfSpeech
Get thekuromoji_part_of_speechvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thekuromoji_part_of_speechkind.
-
kuromojiReadingform
Get thekuromoji_readingformvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thekuromoji_readingformkind.
-
kuromojiStemmer
Get thekuromoji_stemmervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thekuromoji_stemmerkind.
-
length
Get thelengthvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thelengthkind.
-
limit
Get thelimitvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thelimitkind.
-
lowercase
Get thelowercasevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thelowercasekind.
-
multiplexer
Get themultiplexervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themultiplexerkind.
-
ngram
Get thengramvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thengramkind.
-
noriPartOfSpeech
Get thenori_part_of_speechvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thenori_part_of_speechkind.
-
patternCapture
Get thepattern_capturevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thepattern_capturekind.
-
patternReplace
Get thepattern_replacevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thepattern_replacekind.
-
porterStem
Get theporter_stemvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theporter_stemkind.
-
predicateTokenFilter
Get thepredicate_token_filtervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thepredicate_token_filterkind.
-
removeDuplicates
Get theremove_duplicatesvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theremove_duplicateskind.
-
reverse
Get thereversevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thereversekind.
-
shingle
Get theshinglevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theshinglekind.
-
snowball
Get thesnowballvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesnowballkind.
-
stemmerOverride
Get thestemmer_overridevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thestemmer_overridekind.
-
stemmer
Get thestemmervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thestemmerkind.
-
stop
Get thestopvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thestopkind.
-
synonymGraph
Get thesynonym_graphvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesynonym_graphkind.
-
synonym
Get thesynonymvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesynonymkind.
-
trim
Get thetrimvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetrimkind.
-
truncate
Get thetruncatevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetruncatekind.
-
unique
Get theuniquevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theuniquekind.
-
uppercase
Get theuppercasevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theuppercasekind.
-
wordDelimiterGraph
Get theword_delimiter_graphvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theword_delimiter_graphkind.
-
wordDelimiter
Get theword_delimitervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theword_delimiterkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupTokenFilterDeserializer
-