Class FieldValueFactorScoreFunction.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.FieldValueFactorScoreFunction.Builder
- All Implemented Interfaces:
CopyableBuilder<FieldValueFactorScoreFunction.Builder,,FieldValueFactorScoreFunction> MutableBuilder<FieldValueFactorScoreFunction.Builder,,FieldValueFactorScoreFunction> ObjectBuilder<FieldValueFactorScoreFunction>
- Enclosing class:
FieldValueFactorScoreFunction
public static class FieldValueFactorScoreFunction.Builder
extends ObjectBuilderBase
implements CopyableBuilder<FieldValueFactorScoreFunction.Builder,FieldValueFactorScoreFunction>
Builder for
FieldValueFactorScoreFunction.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aFieldValueFactorScoreFunction.copy()Create a new builderCopyableBuilderthat is a copy of this one.Optional factor to multiply the field value with.Required - API name:fieldValue used if the document doesn't have that field.modifier(FieldValueFactorModifier value) API name:modifierMethods 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<FieldValueFactorScoreFunction.Builder,FieldValueFactorScoreFunction> - Returns:
- a new builder instance.
-
factor
Optional factor to multiply the field value with.API name:
factor -
field
Required - API name:field -
missing
Value used if the document doesn't have that field. The modifier and factor are still applied to it as though it were read from the document.API name:
missing -
modifier
@Nonnull public final FieldValueFactorScoreFunction.Builder modifier(@Nullable FieldValueFactorModifier value) API name:modifier -
build
Builds aFieldValueFactorScoreFunction.- Specified by:
buildin interfaceObjectBuilder<FieldValueFactorScoreFunction>- Throws:
NullPointerException- if some of the required fields are null.
-