Class SpanNotQuery.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder<SpanNotQuery.Builder>
org.opensearch.client.opensearch._types.query_dsl.SpanNotQuery.Builder
- All Implemented Interfaces:
CopyableBuilder<SpanNotQuery.Builder,,SpanNotQuery> MutableBuilder<SpanNotQuery.Builder,,SpanNotQuery> ObjectBuilder<SpanNotQuery>
- Enclosing class:
SpanNotQuery
public static class SpanNotQuery.Builder
extends QueryBase.AbstractBuilder<SpanNotQuery.Builder>
implements CopyableBuilder<SpanNotQuery.Builder,SpanNotQuery>
Builder for
SpanNotQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSpanNotQuery.copy()Create a new builderCopyableBuilderthat is a copy of this one.final SpanNotQuery.BuilderThe number of tokens from within the include span that can't have overlap with the exclude span.final SpanNotQuery.BuilderRequired - API name:excludefinal SpanNotQuery.BuilderRequired - API name:excludefinal SpanNotQuery.BuilderRequired - API name:includefinal SpanNotQuery.BuilderRequired - API name:includefinal SpanNotQuery.BuilderThe number of tokens after the include span that can't have overlap with the exclude span.final SpanNotQuery.BuilderThe number of tokens before the include span that can't have overlap with the exclude span.protected SpanNotQuery.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<SpanNotQuery.Builder,SpanNotQuery> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classQueryBase.AbstractBuilder<SpanNotQuery.Builder>
-
dist
The number of tokens from within the include span that can't have overlap with the exclude span. Equivalent to setting bothpreandpost.API name:
dist -
exclude
Required - API name:exclude -
exclude
@Nonnull public final SpanNotQuery.Builder exclude(Function<SpanQuery.Builder, ObjectBuilder<SpanQuery>> fn) Required - API name:exclude -
include
Required - API name:include -
include
@Nonnull public final SpanNotQuery.Builder include(Function<SpanQuery.Builder, ObjectBuilder<SpanQuery>> fn) Required - API name:include -
post
The number of tokens after the include span that can't have overlap with the exclude span.API name:
post -
pre
The number of tokens before the include span that can't have overlap with the exclude span.API name:
pre -
build
Builds aSpanNotQuery.- Specified by:
buildin interfaceObjectBuilder<SpanNotQuery>- Throws:
NullPointerException- if some of the required fields are null.
-