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

Joseph Percivall commented on NIFI-3576:
----------------------------------------

Ah, I see your point about the FlowFile per hit and agree that there's some 
weirdness with the attributes for an empty "hit" FlowFile. The actual "hit per 
FF" functionality kinda goes against what is documented so we should change 
that a bit. With that, I also agree that 3 isn't what we want.

 

So what if we changed the displayName for "success" to "hits" and add a new 
property to say whether to emit a FF to a 'no hits' relationship. The property 
would default to not emitting and the relationship would only be available when 
that prop is true. That way the functionality is fully backwards compatible.

> QueryElasticsearchHttp should have a "Not Found"/"Zero results" relationship
> ----------------------------------------------------------------------------
>
>                 Key: NIFI-3576
>                 URL: https://issues.apache.org/jira/browse/NIFI-3576
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Joseph Percivall
>            Assignee: Otto Fowler
>            Priority: Minor
>
> In the event of a successful call, QueryElasticsearchHttp always drops the 
> incoming flowfile and then emits pages of results to the success 
> relationship. If the search returns no results then no pages of results are 
> emitted to the success relationship. 
> The processor should offer other options for handling when there are no 
> results returned.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to