Class IntervalsMatch.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IntervalsMatch.Builder>
co.elastic.clients.elasticsearch._types.query_dsl.IntervalsMatch.Builder
- All Implemented Interfaces:
WithJson<IntervalsMatch.Builder>,ObjectBuilder<IntervalsMatch>
- Enclosing class:
- IntervalsMatch
public static class IntervalsMatch.Builder
extends WithJsonObjectBuilderBase<IntervalsMatch.Builder>
implements ObjectBuilder<IntervalsMatch>
Builder for
IntervalsMatch.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal IntervalsMatch.BuilderAnalyzer used to analyze terms in the query.build()Builds aIntervalsMatch.final IntervalsMatch.Builderfilter(IntervalsFilter value) An optional interval filter.final IntervalsMatch.BuilderAn optional interval filter.final 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.protected IntervalsMatch.Builderself()final IntervalsMatch.BuilderIf specified, match intervals from this field rather than the top-level field.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
analyzer
Analyzer used to analyze terms in the query.API name:
analyzer -
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
If specified, match intervals from this field rather than the top-level field. Thetermis normalized using the search analyzer from this field, unlessanalyzeris specified separately.API name:
use_field -
filter
An optional interval filter.API name:
filter -
filter
public final IntervalsMatch.Builder filter(Function<IntervalsFilter.Builder, ObjectBuilder<IntervalsFilter>> fn) An optional interval filter.API name:
filter -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<IntervalsMatch.Builder>
-
build
Builds aIntervalsMatch.- Specified by:
buildin interfaceObjectBuilder<IntervalsMatch>- Throws:
NullPointerException- if some of the required fields are null.
-