Class FieldCollapse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.search.FieldCollapse.Builder
- All Implemented Interfaces:
CopyableBuilder<FieldCollapse.Builder,,FieldCollapse> MutableBuilder<FieldCollapse.Builder,,FieldCollapse> ObjectBuilder<FieldCollapse>
- Enclosing class:
FieldCollapse
public static class FieldCollapse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<FieldCollapse.Builder,FieldCollapse>
Builder for
FieldCollapse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aFieldCollapse.copy()Create a new builderCopyableBuilderthat is a copy of this one.final FieldCollapse.BuilderRequired - API name:fieldfinal FieldCollapse.BuilderThe number of inner hits and their sort order.final FieldCollapse.BuilderThe number of inner hits and their sort order.final FieldCollapse.BuilderThe number of inner hits and their sort order.final FieldCollapse.BuilderThe number of concurrent requests that are allowed to be retrieved by theinner_hitsparameter per group.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<FieldCollapse.Builder,FieldCollapse> - Returns:
- a new builder instance.
-
field
Required - API name:field -
innerHits
The number of inner hits and their sort order.API name:
inner_hitsAdds all elements of
listtoinnerHits. -
innerHits
The number of inner hits and their sort order.API name:
inner_hitsAdds one or more values to
innerHits. -
innerHits
@Nonnull public final FieldCollapse.Builder innerHits(Function<InnerHits.Builder, ObjectBuilder<InnerHits>> fn) The number of inner hits and their sort order.API name:
inner_hitsAdds a value to
innerHitsusing a builder lambda. -
maxConcurrentGroupSearches
The number of concurrent requests that are allowed to be retrieved by theinner_hitsparameter per group.API name:
max_concurrent_group_searches -
build
Builds aFieldCollapse.- Specified by:
buildin interfaceObjectBuilder<FieldCollapse>- Throws:
NullPointerException- if some of the required fields are null.
-