Class CategorizationAnalyzerDefinition.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<CategorizationAnalyzerDefinition.Builder>
co.elastic.clients.elasticsearch.ml.CategorizationAnalyzerDefinition.Builder
- All Implemented Interfaces:
WithJson<CategorizationAnalyzerDefinition.Builder>,ObjectBuilder<CategorizationAnalyzerDefinition>
- Enclosing class:
- CategorizationAnalyzerDefinition
public static class CategorizationAnalyzerDefinition.Builder
extends WithJsonObjectBuilderBase<CategorizationAnalyzerDefinition.Builder>
implements ObjectBuilder<CategorizationAnalyzerDefinition>
Builder for
CategorizationAnalyzerDefinition.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCategorizationAnalyzerDefinition.charFilter(CharFilter value, CharFilter... values) One or more character filters.One or more character filters.charFilter(List<CharFilter> list) One or more character filters.filter(TokenFilter value, TokenFilter... values) One or more token filters.One or more token filters.filter(List<TokenFilter> list) One or more token filters.protected CategorizationAnalyzerDefinition.Builderself()The name or definition of the tokenizer to use after character filters are applied.The name or definition of the tokenizer to use after character filters are applied.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
charFilter
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:
char_filterAdds all elements of
listtocharFilter. -
charFilter
public final CategorizationAnalyzerDefinition.Builder charFilter(CharFilter value, CharFilter... values) 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:
char_filterAdds one or more values to
charFilter. -
charFilter
public final CategorizationAnalyzerDefinition.Builder charFilter(Function<CharFilter.Builder, ObjectBuilder<CharFilter>> fn) 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:
char_filterAdds a value to
charFilterusing a builder lambda. -
filter
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:
filterAdds all elements of
listtofilter. -
filter
public final CategorizationAnalyzerDefinition.Builder filter(TokenFilter value, TokenFilter... values) 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:
filterAdds one or more values to
filter. -
filter
public final CategorizationAnalyzerDefinition.Builder filter(Function<TokenFilter.Builder, ObjectBuilder<TokenFilter>> fn) 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:
filterAdds a value to
filterusing a builder lambda. -
tokenizer
The name or definition of the tokenizer to use after character filters are applied. This property is compulsory ifcategorization_analyzeris specified as an object. Machine learning provides a tokenizer calledml_standardthat tokenizes in a way that has been determined to produce good categorization results on a variety of log file formats for logs in English. If you want to use that tokenizer but change the character or token filters, specify "tokenizer": "ml_standard" in yourcategorization_analyzer. Additionally, theml_classictokenizer is available, which tokenizes in the same way as the non-customizable tokenizer in old versions of the product (before 6.2).ml_classicwas the default categorization tokenizer in versions 6.2 to 7.13, so if you need categorization identical to the default for jobs created in these versions, specify "tokenizer": "ml_classic" in yourcategorization_analyzer.API name:
tokenizer -
tokenizer
public final CategorizationAnalyzerDefinition.Builder tokenizer(Function<Tokenizer.Builder, ObjectBuilder<Tokenizer>> fn) The name or definition of the tokenizer to use after character filters are applied. This property is compulsory ifcategorization_analyzeris specified as an object. Machine learning provides a tokenizer calledml_standardthat tokenizes in a way that has been determined to produce good categorization results on a variety of log file formats for logs in English. If you want to use that tokenizer but change the character or token filters, specify "tokenizer": "ml_standard" in yourcategorization_analyzer. Additionally, theml_classictokenizer is available, which tokenizes in the same way as the non-customizable tokenizer in old versions of the product (before 6.2).ml_classicwas the default categorization tokenizer in versions 6.2 to 7.13, so if you need categorization identical to the default for jobs created in these versions, specify "tokenizer": "ml_classic" in yourcategorization_analyzer.API name:
tokenizer -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<CategorizationAnalyzerDefinition.Builder>
-
build
Builds aCategorizationAnalyzerDefinition.- Specified by:
buildin interfaceObjectBuilder<CategorizationAnalyzerDefinition>- Throws:
NullPointerException- if some of the required fields are null.
-