[
https://issues.apache.org/jira/browse/CAMEL-19752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17761033#comment-17761033
]
Nicolas Filotto commented on CAMEL-19752:
-----------------------------------------
I understand your point of view but the fact is that the new client used behind
is more low level than the one used by the legacy component. The client is
one-to-one mapping with Elastic Rest API so you can do very low-level
operations. I will improve the doc to explain it and propose a new component
option to switch to the legacy mode, would it be good enough for you?
> Usage of "doc" prefix in some elasticsearch operations are regression to
> camel-elasticsearch-rest
> -------------------------------------------------------------------------------------------------
>
> Key: CAMEL-19752
> URL: https://issues.apache.org/jira/browse/CAMEL-19752
> Project: Camel
> Issue Type: Improvement
> Components: camel-elasticsearch
> Reporter: Lukas Lowinger
> Priority: Major
>
> I've noticed that some elasticsearch operations needs another key element
> ("doc") added to the map before it is passed to camel route.
> It can be seen on many places in the camel tests - eg.
> [https://github.com/apache/camel/blob/main/components/camel-elasticsearch/src/test/java/org/apache/camel/component/es/integration/ElasticsearchGetSearchDeleteExistsUpdateIT.java#L280]
> This is regression to previous camel-elasticsearch-rest component and could
> be tricky for users to figure it out (as i had to as well).
>
> It would be nice to document it and also provide some example with its usage.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)