Class IntervalsMatch.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.IntervalsMatch.Builder
- All Implemented Interfaces:
CopyableBuilder<IntervalsMatch.Builder,,IntervalsMatch> MutableBuilder<IntervalsMatch.Builder,,IntervalsMatch> ObjectBuilder<IntervalsMatch>
- Enclosing class:
IntervalsMatch
public static class IntervalsMatch.Builder
extends ObjectBuilderBase
implements CopyableBuilder<IntervalsMatch.Builder,IntervalsMatch>
Builder for
IntervalsMatch.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal IntervalsMatch.BuilderAnalyzer used to analyze terms in the query.build()Builds aIntervalsMatch.copy()Create a new builderCopyableBuilderthat is a copy of this one.final IntervalsMatch.BuilderAPI name:filterfinal IntervalsMatch.Builderfilter(IntervalsFilter value) API name:filterfinal IntervalsMatch.BuilderMaximum number of positions between the matching terms.final IntervalsMatch.BuilderIftrue, matching terms must appear in their specified order.final IntervalsMatch.BuilderRequired - Text you wish to find in the provided field.final IntervalsMatch.BuilderAPI name:use_fieldMethods 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<IntervalsMatch.Builder,IntervalsMatch> - Returns:
- a new builder instance.
-
analyzer
Analyzer used to analyze terms in the query.API name:
analyzer -
filter
API name:filter -
filter
@Nonnull public final IntervalsMatch.Builder filter(Function<IntervalsFilter.Builder, ObjectBuilder<IntervalsFilter>> fn) API name:filter -
maxGaps
Maximum number of positions between the matching terms. Terms further apart than this are not considered matches.API name:
max_gaps -
ordered
Iftrue, matching terms must appear in their specified order.API name:
ordered -
query
Required - Text you wish to find in the provided field.API name:
query -
useField
API name:use_field -
build
Builds aIntervalsMatch.- Specified by:
buildin interfaceObjectBuilder<IntervalsMatch>- Throws:
NullPointerException- if some of the required fields are null.
-