Class EnrichProcessor
java.lang.Object
co.elastic.clients.elasticsearch.ingest.ProcessorBase
co.elastic.clients.elasticsearch.ingest.EnrichProcessor
- All Implemented Interfaces:
ProcessorVariant,JsonpSerializable
- 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<EnrichProcessor>Json deserializer forEnrichProcessor -
Method Summary
Modifier and TypeMethodDescriptionProcessor variant kind.final Stringfield()Required - The field in the input document that matches the policies match_field used to retrieve the enrichment data.final BooleanIftrueandfielddoes not exist, the processor quietly exits without modifying the document.final IntegerThe maximum number of matched documents to include under the configured target field.static EnrichProcessorfinal Booleanoverride()If processor will update fields with pre-existing non-null-valued field.final StringRequired - The name of the enrich policy to use.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal GeoShapeRelationA spatial relation operator used to match the geoshape of incoming documents to documents in the enrich index.final StringRequired - Field added to incoming documents to contain enrich data.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 forEnrichProcessor
-
-
Method Details
-
of
public static EnrichProcessor of(Function<EnrichProcessor.Builder, ObjectBuilder<EnrichProcessor>> fn) -
_processorKind
Processor variant kind.- Specified by:
_processorKindin interfaceProcessorVariant
-
field
Required - The field in the input document that matches the policies match_field used to retrieve the enrichment data. Supports template snippets.API name:
field -
ignoreMissing
Iftrueandfielddoes not exist, the processor quietly exits without modifying the document.API name:
ignore_missing -
maxMatches
The maximum number of matched documents to include under the configured target field. Thetarget_fieldwill be turned into a json array ifmax_matchesis higher than 1, otherwisetarget_fieldwill become a json object. In order to avoid documents getting too large, the maximum allowed value is 128.API name:
max_matches -
override
If processor will update fields with pre-existing non-null-valued field. When set tofalse, such fields will not be touched.API name:
override -
policyName
Required - The name of the enrich policy to use.API name:
policy_name -
shapeRelation
A spatial relation operator used to match the geoshape of incoming documents to documents in the enrich index. This option is only used forgeo_matchenrich policy types.API name:
shape_relation -
targetField
Required - Field added to incoming documents to contain enrich data. This field contains both thematch_fieldandenrich_fieldsspecified in the enrich policy. Supports template snippets.API name:
target_field -
serializeInternal
- Overrides:
serializeInternalin classProcessorBase
-
setupEnrichProcessorDeserializer
protected static void setupEnrichProcessorDeserializer(ObjectDeserializer<EnrichProcessor.Builder> op)
-