Class SimulateRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ingest.SimulateRequest
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class SimulateRequest extends RequestBase implements JsonpSerializable
Executes an ingest pipeline against a set of provided documents.
See Also:
  • Field Details

  • Method Details

    • of

    • docs

      public final List<Document> docs()
      Sample documents to test in the pipeline.

      API name: docs

    • id

      @Nullable public final String id()
      Pipeline to test. If you don’t specify a pipeline in the request body, this parameter is required.

      API name: id

    • pipeline

      @Nullable public final Pipeline pipeline()
      Pipeline to test. If you don’t specify the pipeline 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

      @Nullable public final Boolean verbose()
      If true, the response includes output data for each processor in the executed pipeline.

      API name: verbose

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupSimulateRequestDeserializer

      protected static void setupSimulateRequestDeserializer(ObjectDeserializer<SimulateRequest.Builder> op)