Class Analyzer
java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.Analyzer
- All Implemented Interfaces:
JsonpSerializable
,TaggedUnion<JsonpSerializable>
@JsonpDeserializable public class Analyzer extends java.lang.Object implements TaggedUnion<JsonpSerializable>, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Analyzer.Builder
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Analyzer>
_DESERIALIZER
static java.lang.String
CUSTOM
static java.lang.String
FINGERPRINT
static java.lang.String
ICU_ANALYZER
static java.lang.String
KEYWORD
static java.lang.String
KUROMOJI
static java.lang.String
LANGUAGE
static java.lang.String
NORI
static java.lang.String
PATTERN
static java.lang.String
SIMPLE
static java.lang.String
STANDARD
static java.lang.String
STOP
static java.lang.String
WHITESPACE
-
Constructor Summary
Constructors Constructor Description Analyzer(AnalyzerVariant value)
Analyzer(ObjectBuilder<T> builder)
Analyzer(java.util.function.Function<Analyzer.Builder,Analyzer.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.CustomAnalyzer
custom()
Get thecustom
variant value.FingerprintAnalyzer
fingerprint()
Get thefingerprint
variant value.IcuAnalyzer
icuAnalyzer()
Get theicu_analyzer
variant value.KeywordAnalyzer
keyword()
Get thekeyword
variant value.KuromojiAnalyzer
kuromoji()
Get thekuromoji
variant value.LanguageAnalyzer
language()
Get thelanguage
variant value.NoriAnalyzer
nori()
Get thenori
variant value.PatternAnalyzer
pattern()
Get thepattern
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupAnalyzerDeserializer(DelegatingDeserializer<Analyzer.Builder> op)
SimpleAnalyzer
simple()
Get thesimple
variant value.StandardAnalyzer
standard()
Get thestandard
variant value.StopAnalyzer
stop()
Get thestop
variant value.WhitespaceAnalyzer
whitespace()
Get thewhitespace
variant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
CUSTOM
public static final java.lang.String CUSTOM- See Also:
- Constant Field Values
-
FINGERPRINT
public static final java.lang.String FINGERPRINT- See Also:
- Constant Field Values
-
ICU_ANALYZER
public static final java.lang.String ICU_ANALYZER- See Also:
- Constant Field Values
-
KEYWORD
public static final java.lang.String KEYWORD- See Also:
- Constant Field Values
-
KUROMOJI
public static final java.lang.String KUROMOJI- See Also:
- Constant Field Values
-
LANGUAGE
public static final java.lang.String LANGUAGE- See Also:
- Constant Field Values
-
NORI
public static final java.lang.String NORI- See Also:
- Constant Field Values
-
PATTERN
public static final java.lang.String PATTERN- See Also:
- Constant Field Values
-
SIMPLE
public static final java.lang.String SIMPLE- See Also:
- Constant Field Values
-
STANDARD
public static final java.lang.String STANDARD- See Also:
- Constant Field Values
-
STOP
public static final java.lang.String STOP- See Also:
- Constant Field Values
-
WHITESPACE
public static final java.lang.String WHITESPACE- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
Analyzer
-
Analyzer
-
Analyzer
-
-
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 interfaceTaggedUnion<JsonpSerializable>
- Returns:
- the variant type
-
_get
- Specified by:
_get
in interfaceTaggedUnion<JsonpSerializable>
-
custom
Get thecustom
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thecustom
kind.
-
fingerprint
Get thefingerprint
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thefingerprint
kind.
-
icuAnalyzer
Get theicu_analyzer
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theicu_analyzer
kind.
-
keyword
Get thekeyword
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thekeyword
kind.
-
kuromoji
Get thekuromoji
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thekuromoji
kind.
-
language
Get thelanguage
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thelanguage
kind.
-
nori
Get thenori
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thenori
kind.
-
pattern
Get thepattern
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thepattern
kind.
-
simple
Get thesimple
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesimple
kind.
-
standard
Get thestandard
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thestandard
kind.
-
stop
Get thestop
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thestop
kind.
-
whitespace
Get thewhitespace
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thewhitespace
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupAnalyzerDeserializer
-