Class IntervalsPrefix.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IntervalsPrefix.Builder>
co.elastic.clients.elasticsearch._types.query_dsl.IntervalsPrefix.Builder
- All Implemented Interfaces:
WithJson<IntervalsPrefix.Builder>
,ObjectBuilder<IntervalsPrefix>
- Enclosing class:
- IntervalsPrefix
public static class IntervalsPrefix.Builder
extends WithJsonObjectBuilderBase<IntervalsPrefix.Builder>
implements ObjectBuilder<IntervalsPrefix>
Builder for
IntervalsPrefix
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal IntervalsPrefix.Builder
Analyzer used to analyze theprefix
.build()
Builds aIntervalsPrefix
.final IntervalsPrefix.Builder
Required - Beginning characters of terms you wish to find in the top-level field.protected IntervalsPrefix.Builder
self()
final IntervalsPrefix.Builder
If specified, match intervals from this field rather than the top-level field.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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
-
prefix
Required - Beginning characters of terms you wish to find in the top-level field.API name:
prefix
-
useField
If specified, match intervals from this field rather than the top-level field. Theprefix
is normalized using the search analyzer from this field, unlessanalyzer
is specified separately.API name:
use_field
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<IntervalsPrefix.Builder>
-
build
Builds aIntervalsPrefix
.- Specified by:
build
in interfaceObjectBuilder<IntervalsPrefix>
- Throws:
NullPointerException
- if some of the required fields are null.
-