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

QueryElasticsearchHttp malformed query when using Fields

    XMLWordPrintableJSON

Details

    • Patch

    Description

      The query used in this processor is malformed when using the Fields section, as it writes _source_include=xxx instead of _source_includes=xxx. The missing 's' at the end makes the query fail.

      E.g.:

      "request":"GET /files-metadata-2020/_search?q=state%3A%22started%22&size=200&from=0&_source_include=ip%2Cpath%2Csize HTTP/1.1"
      

      and it should be:

      "request":"GET /files-metadata-2020/_search?q=state%3A%22started%22&size=200&from=0&_source_includes=ip%2Cpath%2Csize HTTP/1.1"
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mabr33 Miguel Rodrigues
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Time Spent - 1h Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - 1h Remaining Estimate - 1h
                  1h