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 InferenceConfigContains the inference type and its options.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 -
serializeInternal
- Overrides:
serializeInternalin classProcessorBase
-
setupInferenceProcessorDeserializer
protected static void setupInferenceProcessorDeserializer(ObjectDeserializer<InferenceProcessor.Builder> op)
-