Class RollupSearchRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.rollup.RollupSearchRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class RollupSearchRequest extends RequestBase implements JsonpSerializable
Enables searching rolled-up data using the standard query DSL.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRollupSearchRequest.BuilderBuilder forRollupSearchRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<RollupSearchRequest>_DESERIALIZERJson deserializer forRollupSearchRequeststatic SimpleEndpoint<RollupSearchRequest,?>_ENDPOINTEndpoint "rollup.rollup_search". -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,Aggregation>aggregations()API name:aggregationsstatic <TDocument>
Endpoint<RollupSearchRequest,RollupSearchResponse<TDocument>,ErrorResponse>createRollupSearchEndpoint(JsonpDeserializer<TDocument> tDocumentDeserializer)Create an "rollup.rollup_search" endpoint.java.util.List<java.lang.String>index()Required - The indices or index-pattern(s) (containing rollup or regular data) that should be searchedstatic RollupSearchRequestof(java.util.function.Function<RollupSearchRequest.Builder,ObjectBuilder<RollupSearchRequest>> fn)Queryquery()API name:queryvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupRollupSearchRequestDeserializer(ObjectDeserializer<RollupSearchRequest.Builder> op)java.lang.Integersize()Must be zero if set, as rollups work on pre-aggregated datajava.lang.Stringtype()The doc type inside the indexMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forRollupSearchRequest -
_ENDPOINT
Endpoint "rollup.rollup_search".
-
-
Method Details
-
of
public static RollupSearchRequest of(java.util.function.Function<RollupSearchRequest.Builder,ObjectBuilder<RollupSearchRequest>> fn) -
aggregations
API name:aggregations -
index
public final java.util.List<java.lang.String> index()Required - The indices or index-pattern(s) (containing rollup or regular data) that should be searchedAPI name:
index -
query
API name:query -
size
@Nullable public final java.lang.Integer size()Must be zero if set, as rollups work on pre-aggregated dataAPI name:
size -
type
@Nullable public final java.lang.String type()The doc type inside the indexAPI name:
type -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupRollupSearchRequestDeserializer
protected static void setupRollupSearchRequestDeserializer(ObjectDeserializer<RollupSearchRequest.Builder> op) -
createRollupSearchEndpoint
public static <TDocument> Endpoint<RollupSearchRequest,RollupSearchResponse<TDocument>,ErrorResponse> createRollupSearchEndpoint(JsonpDeserializer<TDocument> tDocumentDeserializer)Create an "rollup.rollup_search" endpoint.
-