Class SimulateRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ingest.SimulateRequest
- All Implemented Interfaces:
JsonpSerializable
Simulate a pipeline.
Run an ingest pipeline against a set of provided documents. You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request.
- 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()
Required - Sample documents to test in the pipeline.final String
id()
The pipeline to test.static SimulateRequest
final Pipeline
pipeline()
The 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
Required - Sample documents to test in the pipeline.API name:
docs
-
id
The pipeline to test. If you don't specify apipeline
in the request body, this parameter is required.API name:
id
-
pipeline
The 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)
-