Class CategorizationAnalyzer
java.lang.Object
co.elastic.clients.elasticsearch.ml.CategorizationAnalyzer
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class CategorizationAnalyzer extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CategorizationAnalyzer.Builder
Builder forCategorizationAnalyzer
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CategorizationAnalyzer>
_DESERIALIZER
Json deserializer forCategorizationAnalyzer
-
Constructor Summary
Constructors Constructor Description CategorizationAnalyzer(CategorizationAnalyzer.Builder builder)
CategorizationAnalyzer(java.util.function.Function<CategorizationAnalyzer.Builder,CategorizationAnalyzer.Builder> fn)
-
Method Summary
Modifier and Type Method Description java.util.List<CharFilter>
charFilter()
API name:char_filter
java.util.List<TokenFilter>
filter()
One or more character filters.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupCategorizationAnalyzerDeserializer(DelegatingDeserializer<CategorizationAnalyzer.Builder> op)
Tokenizer
tokenizer()
One or more token filters.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forCategorizationAnalyzer
-
-
Constructor Details
-
CategorizationAnalyzer
-
CategorizationAnalyzer
public CategorizationAnalyzer(java.util.function.Function<CategorizationAnalyzer.Builder,CategorizationAnalyzer.Builder> fn)
-
-
Method Details
-
charFilter
API name:char_filter
-
filter
One or more character filters. In addition to the built-in character filters, other plugins can provide more character filters. If this property is not specified, no character filters are applied prior to categorization. If you are customizing some other aspect of the analyzer and you need to achieve the equivalent ofcategorization_filters
(which are not permitted when some other aspect of the analyzer is customized), add them here as pattern replace character filters.API name:
filter
-
tokenizer
One or more token filters. In addition to the built-in token filters, other plugins can provide more token filters. If this property is not specified, no token filters are applied prior to categorization.API name:
tokenizer
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupCategorizationAnalyzerDeserializer
protected static void setupCategorizationAnalyzerDeserializer(DelegatingDeserializer<CategorizationAnalyzer.Builder> op)
-