Class SimulateRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ingest.SimulateRequest
- All Implemented Interfaces:
JsonpSerializable
Executes an ingest pipeline against a set of provided documents.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SimulateRequest>
Json deserializer forSimulateRequest
static final Endpoint<SimulateRequest,
SimulateResponse, ErrorResponse> Endpoint "ingest.simulate
". -
Method Summary
Modifier and TypeMethodDescriptiondocs()
Sample documents to test in the pipeline.final String
id()
Pipeline to test.static SimulateRequest
final Pipeline
pipeline()
Pipeline to test.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final Boolean
verbose()
Iftrue
, the response includes output data for each processor in the executed pipeline.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forSimulateRequest
-
_ENDPOINT
Endpoint "ingest.simulate
".
-
-
Method Details
-
of
public static SimulateRequest of(Function<SimulateRequest.Builder, ObjectBuilder<SimulateRequest>> fn) -
docs
Sample documents to test in the pipeline.API name:
docs
-
id
Pipeline to test. If you don’t specify apipeline
in the request body, this parameter is required.API name:
id
-
pipeline
Pipeline to test. If you don’t specify thepipeline
request path parameter, this parameter is required. If you specify both this and the request path parameter, the API only uses the request path parameter.API name:
pipeline
-
verbose
Iftrue
, the response includes output data for each processor in the executed pipeline.API name:
verbose
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupSimulateRequestDeserializer
protected static void setupSimulateRequestDeserializer(ObjectDeserializer<SimulateRequest.Builder> op)
-