Class DirectGenerator.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.search.DirectGenerator.Builder
- All Implemented Interfaces:
CopyableBuilder<DirectGenerator.Builder,,DirectGenerator> MutableBuilder<DirectGenerator.Builder,,DirectGenerator> ObjectBuilder<DirectGenerator>
- Enclosing class:
DirectGenerator
public static class DirectGenerator.Builder
extends ObjectBuilderBase
implements CopyableBuilder<DirectGenerator.Builder,DirectGenerator>
Builder for
DirectGenerator.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDirectGenerator.copy()Create a new builderCopyableBuilderthat is a copy of this one.final DirectGenerator.BuilderRequired - API name:fieldfinal DirectGenerator.BuilderAPI name:max_editsfinal DirectGenerator.BuildermaxInspections(Float value) API name:max_inspectionsfinal DirectGenerator.BuildermaxTermFreq(Float value) API name:max_term_freqfinal DirectGenerator.BuilderminDocFreq(Float value) API name:min_doc_freqfinal DirectGenerator.BuilderminWordLength(Integer value) API name:min_word_lengthfinal DirectGenerator.BuilderpostFilter(String value) API name:post_filterfinal DirectGenerator.BuilderAPI name:pre_filterfinal DirectGenerator.BuilderprefixLength(Integer value) API name:prefix_lengthfinal DirectGenerator.BuilderAPI name:sizefinal DirectGenerator.BuildersuggestMode(SuggestMode value) API name:suggest_modeMethods 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<DirectGenerator.Builder,DirectGenerator> - Returns:
- a new builder instance.
-
field
Required - API name:field -
maxEdits
API name:max_edits -
maxInspections
API name:max_inspections -
maxTermFreq
API name:max_term_freq -
minDocFreq
API name:min_doc_freq -
minWordLength
API name:min_word_length -
postFilter
API name:post_filter -
preFilter
API name:pre_filter -
prefixLength
API name:prefix_length -
size
API name:size -
suggestMode
API name:suggest_mode -
build
Builds aDirectGenerator.- Specified by:
buildin interfaceObjectBuilder<DirectGenerator>- Throws:
NullPointerException- if some of the required fields are null.
-