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 2022/11/11 16:03:00 UTC
[jira] [Resolved] (NIFI-7470) QueryElasticsearchHttp malformed query when using Fields
[ https://issues.apache.org/jira/browse/NIFI-7470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Sampson resolved NIFI-7470.
---------------------------------
Resolution: Duplicate
> 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: 1h
> Remaining Estimate: 1h
>
> 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.20.10#820010)