[ 
https://issues.apache.org/jira/browse/NIFI-3497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15895858#comment-15895858
 ] 

ASF GitHub Bot commented on NIFI-3497:
--------------------------------------

GitHub user joetrite opened a pull request:

    https://github.com/apache/nifi/pull/1564

    NIFI-3497 ScanAttribute Tagging

    NIFI-3497 Adding tagging option to ScanAttribute

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/joetrite/nifi NIFI-3497-ScanAttribute-Tagging

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/1564.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1564
    
----
commit c4b231e13399879fb6de1f3766f291adbc61c0de
Author: Joe Trite <[email protected]>
Date:   2017-03-04T20:17:21Z

    NIFI-3497 ScanAttribute Tagging

----


> ScanAttribute should support tagging a flowfile with metadata value from the 
> supplied dictionary
> ------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-3497
>                 URL: https://issues.apache.org/jira/browse/NIFI-3497
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Joseph Witt
>            Assignee: Joseph Witt
>
> Today ScanAttribute just looks through the supplied dictionary and given 
> object for a string matching hit.  If it hits then it is a match otherwise it 
> is a 'not found'.  However, when a hit occurs it can often be quite useful to 
> gather additional metadata about that hit.  This makes cases like 
> enrichment/tagging much easier.
> So, plan is to have ScanAttribute support a dictionary value demarcator which 
> would separate the dictionary term from some string response that will be 
> added to the flowfile.  For instance a dictionary might have
> apples:These are red or green
> bananas:These are yellow unless you should toss them or make bread
> Then if a hit occurs on 'apples' the flowfile that contained such an 
> attribute would have a new attribute such as 'dictionary.hit.term' = 'apple' 
> and 'dictionary.hit.metadata' = 'These are red or green'.
> This means downstream processors could extract that metadata and do 
> interesting things with it.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to