Class Filter.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.termvectors.Filter.Builder
- All Implemented Interfaces:
CopyableBuilder<Filter.Builder,,Filter> MutableBuilder<Filter.Builder,,Filter> ObjectBuilder<Filter>
- Enclosing class:
Filter
public static class Filter.Builder
extends ObjectBuilderBase
implements CopyableBuilder<Filter.Builder,Filter>
Builder for
Filter.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aFilter.copy()Create a new builderCopyableBuilderthat is a copy of this one.final Filter.BuildermaxDocFreq(Integer value) Ignores words that appear in more than the specified number of documents.final Filter.BuildermaxNumTerms(Integer value) The maximum number of terms that should 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.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.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<Filter.Builder,Filter> - Returns:
- a new builder instance.
-
maxDocFreq
Ignores words that appear in more than the specified number of documents. Default isunbounded.API name:
max_doc_freq -
maxNumTerms
The maximum number of terms that should be returned per field.API name:
max_num_terms -
maxTermFreq
Ignore words with more than this frequency in the source doc. Default isunbounded.API name:
max_term_freq -
maxWordLength
The maximum word length. Words longer than this value will be ignored. Default isunbounded.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. Words shorter than this value will be ignored. Default is 0.API name:
min_word_length -
build
Builds aFilter.- Specified by:
buildin interfaceObjectBuilder<Filter>- Throws:
NullPointerException- if some of the required fields are null.
-