Using the enrichment processor
It's quite common to enrich your indexed fields with lookups from other sources. Typical examples are as follows:
- Resolving the ID of values referenced as external foreign keys in a database
- Enriching names with the data object to be able to have all the data aggregated in a single document
To be able to solve these use cases, X-Pack provides a special processor called the enrichment processor.
Getting ready
You need an up-and-running Elasticsearch installation, as we described in the Downloading and installing Elasticsearch recipe in Chapter 1, Getting Started.
To execute the commands, any HTTP client can be used, such as curl (https://curl.haxx.se/), Postman (https://www.getpostman.com/), or similar. Use the Kibana console, as it provides code completion and better character escaping for Elasticsearch.
How to do it...
To be able to use the ingest enrich processor, perform the following steps:
- We need to...