ElasticSearchLookupService 2.0.0

Bundle
org.apache.nifi | nifi-elasticsearch-client-service-nar
Description
Lookup a record from Elasticsearch Server associated with the specified document ID. The coordinates that are passed to the lookup must contain the key 'id'.
Tags
elasticsearch, enrich, lookup, record
Input Requirement
Supports Sensitive Dynamic Properties
false
  • Additional Details for ElasticSearchLookupService 2.0.0

    ElasticSearchLookupService

    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 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.

Properties
Dynamic Properties