Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
One use case that isn't supported by the current implementation of query-info and "no hits" being returned by QueryElasticsearchHttp is when you want to be able to check if there are hits in ES without overwriting the contents of the flow file. Currently if your search returns with no hits, this fact is only reported in the query-info relationship, which does not have the contents of the incoming flow file.
I propose adding a value to "Routing Strategy for Query Info" called "Append as Attributes", which will simply add the query info attributes (es.query.url and es.query.hitcount) to the incoming flow file (which is routed to success, retry, or failure) instead of being added to flowfile that goes to the query-info relationship.
Attachments
Issue Links
- links to