Miguel Rodrigues created NIFI-7470:
--------------------------------------

             Summary: QueryElasticsearchHttp malformed query when using Fields
                 Key: NIFI-7470
                 URL: https://issues.apache.org/jira/browse/NIFI-7470
             Project: Apache NiFi
          Issue Type: Bug
          Components: Core Framework
    Affects Versions: 1.11.4
            Reporter: Miguel Rodrigues
             Fix For: 1.12.0


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.:
{code:java}
"request":"GET 
/files-metadata-2020/_search?q=state%3A%22started%22&size=200&from=0&_source_include=ip%2Cpath%2Csize
 HTTP/1.1"
{code}
and it should be:
{code:java}
"request":"GET 
/files-metadata-2020/_search?q=state%3A%22started%22&size=200&from=0&_source_includes=ip%2Cpath%2Csize
 HTTP/1.1"
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to