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 forSimulateRequeststatic final Endpoint<SimulateRequest,SimulateResponse, ErrorResponse> Endpoint "ingest.simulate". -
Method Summary
Modifier and TypeMethodDescriptiondocs()Required - Sample documents to test in the pipeline.final Stringid()The pipeline to test.static SimulateRequestfinal Pipelinepipeline()The pipeline to test.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Booleanverbose()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 apipelinein the request body, this parameter is required.API name:
id -
pipeline
The pipeline to test. If you don't specify thepipelinerequest 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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupSimulateRequestDeserializer
protected static void setupSimulateRequestDeserializer(ObjectDeserializer<SimulateRequest.Builder> op)
-