Class Filter.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Filter.Builder>
co.elastic.clients.elasticsearch.core.termvectors.Filter.Builder
- All Implemented Interfaces:
WithJson<Filter.Builder>
,ObjectBuilder<Filter>
- Enclosing class:
- Filter
public static class Filter.Builder
extends WithJsonObjectBuilderBase<Filter.Builder>
implements ObjectBuilder<Filter>
Builder for
Filter
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aFilter
.final Filter.Builder
maxDocFreq
(Integer value) Ignore words which occur in more than this many docs.final Filter.Builder
maxNumTerms
(Integer value) Maximum number of terms that must be returned per field.final Filter.Builder
maxTermFreq
(Integer value) Ignore words with more than this frequency in the source doc.final Filter.Builder
maxWordLength
(Integer value) The maximum word length above which words will be ignored.final Filter.Builder
minDocFreq
(Integer value) Ignore terms which do not occur in at least this many docs.final Filter.Builder
minTermFreq
(Integer value) Ignore words with less than this frequency in the source doc.final Filter.Builder
minWordLength
(Integer value) The minimum word length below which words will be ignored.protected Filter.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxDocFreq
Ignore words which occur in more than this many docs. Defaults to unbounded.API name:
max_doc_freq
-
maxNumTerms
Maximum number of terms that must be returned per field.API name:
max_num_terms
-
maxTermFreq
Ignore words with more than this frequency in the source doc. Defaults to unbounded.API name:
max_term_freq
-
maxWordLength
The maximum word length above which words will be ignored. Defaults to unbounded.API name:
max_word_length
-
minDocFreq
Ignore terms which do not occur in at least this many docs.API name:
min_doc_freq
-
minTermFreq
Ignore words with less than this frequency in the source doc.API name:
min_term_freq
-
minWordLength
The minimum word length below which words will be ignored.API name:
min_word_length
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<Filter.Builder>
-
build
Builds aFilter
.- Specified by:
build
in interfaceObjectBuilder<Filter>
- Throws:
NullPointerException
- if some of the required fields are null.
-