Class IntervalsRange.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IntervalsRange.Builder>
co.elastic.clients.elasticsearch._types.query_dsl.IntervalsRange.Builder
- All Implemented Interfaces:
WithJson<IntervalsRange.Builder>,ObjectBuilder<IntervalsRange>
- Enclosing class:
- IntervalsRange
public static class IntervalsRange.Builder
extends WithJsonObjectBuilderBase<IntervalsRange.Builder>
implements ObjectBuilder<IntervalsRange>
Builder for
IntervalsRange.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal IntervalsRange.BuilderAnalyzer used to analyze theprefix.build()Builds aIntervalsRange.final IntervalsRange.BuilderLower term, either gte or gt must be provided.final IntervalsRange.BuilderLower term, either gte or gt must be provided.final IntervalsRange.BuilderUpper term, either lte or lt must be provided.final IntervalsRange.BuilderUpper term, either lte or lt must be provided.protected IntervalsRange.Builderself()final IntervalsRange.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 theprefix.API name:
analyzer -
gte
Lower term, either gte or gt must be provided.API name:
gte -
gt
Lower term, either gte or gt must be provided.API name:
gt -
lte
Upper term, either lte or lt must be provided.API name:
lte -
lt
Upper term, either lte or lt must be provided.API name:
lt -
useField
If specified, match intervals from this field rather than the top-level field. Theprefixis normalized using the search analyzer from this field, unlessanalyzeris specified separately.API name:
use_field -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<IntervalsRange.Builder>
-
build
Builds aIntervalsRange.- Specified by:
buildin interfaceObjectBuilder<IntervalsRange>- Throws:
NullPointerException- if some of the required fields are null.
-