Class CategorizationAnalyzer.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.CategorizationAnalyzer.Builder
- All Implemented Interfaces:
ObjectBuilder<CategorizationAnalyzer>
- Enclosing class:
- CategorizationAnalyzer
public static class CategorizationAnalyzer.Builder extends java.lang.Object implements ObjectBuilder<CategorizationAnalyzer>
Builder for
CategorizationAnalyzer
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
charFilter
API name:char_filter
-
charFilter
API name:char_filter
-
addCharFilter
Add a value tocharFilter(List)
, creating the list if needed. -
charFilter
public CategorizationAnalyzer.Builder charFilter(java.util.function.Function<CharFilter.Builder,ObjectBuilder<CharFilter>> fn)SetcharFilter(List)
to a singleton list. -
addCharFilter
public CategorizationAnalyzer.Builder addCharFilter(java.util.function.Function<CharFilter.Builder,ObjectBuilder<CharFilter>> fn)Add a value tocharFilter(List)
, creating the list if needed. -
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
-
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
-
addFilter
Add a value tofilter(List)
, creating the list if needed. -
filter
public CategorizationAnalyzer.Builder filter(java.util.function.Function<TokenFilter.Builder,ObjectBuilder<TokenFilter>> fn)Setfilter(List)
to a singleton list. -
addFilter
public CategorizationAnalyzer.Builder addFilter(java.util.function.Function<TokenFilter.Builder,ObjectBuilder<TokenFilter>> fn)Add a value tofilter(List)
, creating the list if needed. -
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
-
tokenizer
public CategorizationAnalyzer.Builder tokenizer(java.util.function.Function<Tokenizer.Builder,ObjectBuilder<Tokenizer>> 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:
tokenizer
-
build
Builds aCategorizationAnalyzer
.- Specified by:
build
in interfaceObjectBuilder<CategorizationAnalyzer>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-