Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7036

Add QueryElasticsearchHttp property to support no hits on original FF

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.11.0
    • 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

          Activity

            People

              jgresock Joe Gresock
              jgresock Joe Gresock
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m