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 SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBaseProcessorBase.AbstractBuilder<BuilderT extends ProcessorBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<EnrichProcessor>Json deserializer forEnrichProcessor
- 
Method SummaryModifier 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.ProcessorBasedescription, if_, ignoreFailure, onFailure, serialize, setupProcessorBaseDeserializer, tag, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.ingest.ProcessorVariant_toProcessor
- 
Field Details- 
_DESERIALIZERJson deserializer forEnrichProcessor
 
- 
- 
Method Details- 
ofpublic static EnrichProcessor of(Function<EnrichProcessor.Builder, ObjectBuilder<EnrichProcessor>> fn) 
- 
_processorKindProcessor variant kind.- Specified by:
- _processorKindin interface- ProcessorVariant
 
- 
fieldRequired - The field in the input document that matches the policies match_field used to retrieve the enrichment data. Supports template snippets.API name: field
- 
ignoreMissingIftrueandfielddoes not exist, the processor quietly exits without modifying the document.API name: ignore_missing
- 
maxMatchesThe 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
- 
overrideIf processor will update fields with pre-existing non-null-valued field. When set tofalse, such fields will not be touched.API name: override
- 
policyNameRequired - The name of the enrich policy to use.API name: policy_name
- 
shapeRelationA 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
- 
targetFieldRequired - 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 class- ProcessorBase
 
- 
setupEnrichProcessorDeserializerprotected static void setupEnrichProcessorDeserializer(ObjectDeserializer<EnrichProcessor.Builder> op) 
 
-