Class InferenceProcessor
java.lang.Object
co.elastic.clients.elasticsearch.ingest.ProcessorBase
co.elastic.clients.elasticsearch.ingest.InferenceProcessor
- All Implemented Interfaces:
ProcessorVariant,JsonpSerializable
@JsonpDeserializable
public class InferenceProcessor
extends ProcessorBase
implements ProcessorVariant
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase
ProcessorBase.AbstractBuilder<BuilderT extends ProcessorBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<InferenceProcessor>Json deserializer forInferenceProcessor -
Method Summary
Modifier and TypeMethodDescriptionProcessor variant kind.fieldMap()Maps the document field names to the known field names of the model.final BooleanIf true and any of the input fields defined in input_ouput are missing then those missing fields are quietly ignored, otherwise a missing field causes a failure.final InferenceConfigContains the inference type and its options.final List<InputConfig>Input fields for inference and output (destination) fields for the inference results.final StringmodelId()Required - The ID or alias for the trained model, or the ID of the deployment.static InferenceProcessorprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal StringField added to incoming documents to contain results objects.Methods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase
description, if_, ignoreFailure, onFailure, serialize, setupProcessorBaseDeserializer, tag, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.ingest.ProcessorVariant
_toProcessor
-
Field Details
-
_DESERIALIZER
Json deserializer forInferenceProcessor
-
-
Method Details
-
of
public static InferenceProcessor of(Function<InferenceProcessor.Builder, ObjectBuilder<InferenceProcessor>> fn) -
_processorKind
Processor variant kind.- Specified by:
_processorKindin interfaceProcessorVariant
-
modelId
Required - The ID or alias for the trained model, or the ID of the deployment.API name:
model_id -
targetField
Field added to incoming documents to contain results objects.API name:
target_field -
fieldMap
Maps the document field names to the known field names of the model. This mapping takes precedence over any default mappings provided in the model configuration.API name:
field_map -
inferenceConfig
Contains the inference type and its options.API name:
inference_config -
inputOutput
Input fields for inference and output (destination) fields for the inference results. This option is incompatible with the target_field and field_map options.API name:
input_output -
ignoreMissing
If true and any of the input fields defined in input_ouput are missing then those missing fields are quietly ignored, otherwise a missing field causes a failure. Only applies when using input_output configurations to explicitly list the input fields.API name:
ignore_missing -
serializeInternal
- Overrides:
serializeInternalin classProcessorBase
-
setupInferenceProcessorDeserializer
protected static void setupInferenceProcessorDeserializer(ObjectDeserializer<InferenceProcessor.Builder> op)
-