## Description:

This lookup service uses ElasticSearch as its data source. Mappings in LookupRecord map record paths to paths within an ElasticSearch document. Example:

/user/name => user.contact.name

That would map the record path /user/name to an embedded document named contact with a field named name.

The query that is assembled from these is a boolean query where all of the criteria are under the must list. In addition, wildcards are not supported right now and all criteria are translated into literal match queries.

## Post-Processing

Because an ElasticSearch result might be structured differently than the record which will be enriched by this service, users can specify an additional set of mappings on this lookup service that map JsonPath operations to record paths. Example:

$.user.contact.email => /user/email_address

Would copy the field email from the embedded document contact into the record at that path.