Class ConstantScoreQuery.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder<ConstantScoreQuery.Builder>
org.opensearch.client.opensearch._types.query_dsl.ConstantScoreQuery.Builder
- All Implemented Interfaces:
CopyableBuilder<ConstantScoreQuery.Builder,,ConstantScoreQuery> MutableBuilder<ConstantScoreQuery.Builder,,ConstantScoreQuery> ObjectBuilder<ConstantScoreQuery>
- Enclosing class:
ConstantScoreQuery
public static class ConstantScoreQuery.Builder
extends QueryBase.AbstractBuilder<ConstantScoreQuery.Builder>
implements CopyableBuilder<ConstantScoreQuery.Builder,ConstantScoreQuery>
Builder for
ConstantScoreQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aConstantScoreQuery.copy()Create a new builderCopyableBuilderthat is a copy of this one.Required - API name:filterRequired - API name:filterprotected ConstantScoreQuery.Builderself()Methods inherited from class org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder
boost, queryNameMethods 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<ConstantScoreQuery.Builder,ConstantScoreQuery> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classQueryBase.AbstractBuilder<ConstantScoreQuery.Builder>
-
filter
Required - API name:filter -
filter
@Nonnull public final ConstantScoreQuery.Builder filter(Function<Query.Builder, ObjectBuilder<Query>> fn) Required - API name:filter -
build
Builds aConstantScoreQuery.- Specified by:
buildin interfaceObjectBuilder<ConstantScoreQuery>- Throws:
NullPointerException- if some of the required fields are null.
-