Class IngestDocumentSimulation
java.lang.Object
co.elastic.clients.elasticsearch.simulate.ingest.IngestDocumentSimulation
- All Implemented Interfaces:
- JsonpSerializable
@JsonpDeserializable
public class IngestDocumentSimulation
extends Object
implements JsonpSerializable
The results of ingest simulation on a single document. The _source of the
 document contains the results after running all pipelines listed in
 executed_pipelines on the document. The list of executed pipelines is derived
 from the pipelines that would be executed if this document had been ingested
 into _index.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<IngestDocumentSimulation>Json deserializer forIngestDocumentSimulation
- 
Method SummaryModifier and TypeMethodDescriptionfinal TypeMappingAPI name:effective_mappingfinal ErrorCauseerror()Any error resulting from simulatng ingest on this doc.Required - A list of the names of the pipelines executed on this document.final Stringid()Required - Identifier for the document.A list of the fields that would be ignored at the indexing step.final Stringindex()Required - Name of the index that the document would be indexed into if this were not a simulation.metadata()Additional metadatastatic IngestDocumentSimulationvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsource()Required - JSON body for the document.toString()final longversion()Required -
- 
Field Details- 
_DESERIALIZERJson deserializer forIngestDocumentSimulation
 
- 
- 
Method Details- 
ofpublic static IngestDocumentSimulation of(Function<IngestDocumentSimulation.Builder, ObjectBuilder<IngestDocumentSimulation>> fn) 
- 
metadataAdditional metadata
- 
idRequired - Identifier for the document.API name: _id
- 
indexRequired - Name of the index that the document would be indexed into if this were not a simulation.API name: _index
- 
sourceRequired - JSON body for the document.API name: _source
- 
versionpublic final long version()Required -API name: _version
- 
executedPipelinesRequired - A list of the names of the pipelines executed on this document.API name: executed_pipelines
- 
ignoredFieldsA list of the fields that would be ignored at the indexing step. For example, a field whose value is larger than the allowed limit would make it through all of the pipelines, but would not be indexed into Elasticsearch.API name: ignored_fields
- 
errorAny error resulting from simulatng ingest on this doc. This can be an error generated by executing a processor, or a mapping validation error when simulating indexing the resulting doc.API name: error
- 
effectiveMappingAPI name:effective_mapping
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
toString
- 
setupIngestDocumentSimulationDeserializerprotected static void setupIngestDocumentSimulationDeserializer(ObjectDeserializer<IngestDocumentSimulation.Builder> op) 
 
-