[
https://issues.apache.org/jira/browse/NIFI-3576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15905780#comment-15905780
]
Joseph Percivall commented on NIFI-3576:
----------------------------------------
[[email protected]] nope, from my testing there is nothing emitted.
I believe this is because when it hits this for loop[1] (where it creates the
flowfiles to send) the hits.size() is 0 so it never does any iterations and the
session.transfer(page, REL_SUCCESS) doesn't have any flowfiles in the list.
[1]
https://github.com/JPercivall/nifi/blob/69b23adf1b0fdfb7e1e344c833adfbeb1f4980e5/nifi-nar-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-processors/src/main/java/org/apache/nifi/processors/elasticsearch/QueryElasticsearchHttp.java#L336-L336
> 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
> 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
(v6.3.15#6346)