You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Chris Sampson (Jira)" <ji...@apache.org> on 2020/11/15 21:29:00 UTC

[jira] [Comment Edited] (NIFI-7470) QueryElasticsearchHttp malformed query when using Fields

    [ https://issues.apache.org/jira/browse/NIFI-7470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17232402#comment-17232402 ] 

Chris Sampson edited comment on NIFI-7470 at 11/15/20, 9:28 PM:
----------------------------------------------------------------

Does it work if you specify the `_source_includes` as a dynamic property on the processor instead of using the FIELDS property?

Also, I think NIFI-6404/NIFI-6403 are the same issue.


was (Author: chris s):
Does it work if you specify the `_source_includes` as a dynamic property on the processor instead of using the FIELDS property?

Also, I think NIFI-6403/NIFI-6403 are the same issue.

> 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
>            Priority: Minor
>              Labels: elasticsearch, http, nifi, query, rest
>   Original Estimate: 2h
>          Time Spent: 0.5h
>  Remaining Estimate: 1.5h
>
> 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)