You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Andy LoPresto (Jira)" <ji...@apache.org> on 2020/06/05 20:45:00 UTC

[jira] [Commented] (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=17127082#comment-17127082 ] 

Andy LoPresto commented on NIFI-7470:
-------------------------------------

Please do not populate a fix version until this change is merged into {{master}} and the Jira is resolved. This allows for visibility into what was actually resolved during the next version release cycle. Thank you. 

> 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)