Create an enrich policy

Auth

Creates an enrich policy.

Path parameters

name string required

Name of the enrich policy to create or update.

Query parameters

master_timeout string · default: 30s

Period to wait for a connection to the master node.

Request body

geo_match object

Matches enrich data to incoming documents based on a geo_shape query.

enrich_fields union oneOf required
One of: string[] or string
indices union oneOf required
One of: string[] or string
match_field string required
query {} Query
name string
elasticsearch_version string
match object

Matches enrich data to incoming documents based on a term query.

enrich_fields union oneOf required
One of: string[] or string
indices union oneOf required
One of: string[] or string
match_field string required
query {} Query
name string
elasticsearch_version string
range object

Matches a number, date, or IP address in incoming documents to a range in the enrich index based on a term query.

enrich_fields union oneOf required
One of: string[] or string
indices union oneOf required
One of: string[] or string
match_field string required
query {} Query
name string
elasticsearch_version string

Response

application/json
acknowledged boolean required

For a successful response, this value is always true. On failure, an exception is returned instead.