Class TermSuggestOption.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.search.TermSuggestOption.Builder
- All Implemented Interfaces:
CopyableBuilder<TermSuggestOption.Builder,,TermSuggestOption> MutableBuilder<TermSuggestOption.Builder,,TermSuggestOption> ObjectBuilder<TermSuggestOption>
- Enclosing class:
TermSuggestOption
public static class TermSuggestOption.Builder
extends ObjectBuilderBase
implements CopyableBuilder<TermSuggestOption.Builder,TermSuggestOption>
Builder for
TermSuggestOption.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTermSuggestOption.collateMatch(Boolean value) API name:collate_matchcopy()Create a new builderCopyableBuilderthat is a copy of this one.API name:freqhighlighted(String value) API name:highlightedscore(double value) Required - API name:scoreRequired - API name:textMethods 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<TermSuggestOption.Builder,TermSuggestOption> - Returns:
- a new builder instance.
-
collateMatch
API name:collate_match -
freq
API name:freq -
highlighted
API name:highlighted -
score
Required - API name:score -
text
Required - API name:text -
build
Builds aTermSuggestOption.- Specified by:
buildin interfaceObjectBuilder<TermSuggestOption>- Throws:
NullPointerException- if some of the required fields are null.
-