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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aFilter.final Filter.BuildermaxDocFreq(Integer value) Ignore words which occur in more than this many docs.final Filter.BuildermaxNumTerms(Integer value) Maximum number of terms that must be returned per field.final Filter.BuildermaxTermFreq(Integer value) Ignore words with more than this frequency in the source doc.final Filter.BuildermaxWordLength(Integer value) The maximum word length above which words will be ignored.final Filter.BuilderminDocFreq(Integer value) Ignore terms which do not occur in at least this many docs.final Filter.BuilderminTermFreq(Integer value) Ignore words with less than this frequency in the source doc.final Filter.BuilderminWordLength(Integer value) The minimum word length below which words will be ignored.protected Filter.Builderself()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
-
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:
selfin classWithJsonObjectBuilderBase<Filter.Builder>
-
build
Builds aFilter.- Specified by:
buildin interfaceObjectBuilder<Filter>- Throws:
NullPointerException- if some of the required fields are null.
-