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

Ivan Bolshakov edited comment on CAMEL-12774 at 11/20/18 11:45 AM:
-------------------------------------------------------------------

Please review this test code

It looks like new Update adds some other content into ES document.


was (Author: johnbolshakov):
Please review this test code [^ElasticsearchBaseTest.java]

It looks like new Update adds some other content into ES document.

> Error during type conversion from type: java.lang.String to the required 
> type: org.elasticsearch.action.update.UpdateRequest
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-12774
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12774
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-elasticsearch-rest
>    Affects Versions: 2.22.0
>            Reporter: Ivan Bolshakov
>            Assignee: Andrea Cosentino
>            Priority: Major
>             Fix For: 2.21.3, 2.22.2, 2.23.0
>
>         Attachments: ElasticsearchGetSearchDeleteExistsUpdateTest.java, 
> ElasticsearchUpdateStringTest.java
>
>
> When I try to update es document using Update method of 
> camel-elasticsearch-rest endpoint I got this error
> *Caused by: org.apache.camel.TypeConversionException: Error during type 
> conversion from type: java.lang.String to the required type: 
> org.elasticsearch.action.update.UpdateRequest with value 
> \{teststringupdate-key2=teststringupdate-value2} due 
> java.lang.IllegalArgumentException: The number of object passed must be even 
> but was [1]*
> This is because method 
> {color:#353833}[doc|https://static.javadoc.io/org.elasticsearch/elasticsearch/5.0.0/org/elasticsearch/action/update/UpdateRequest.html#doc-java.lang.String-]{color}{color:#353833}(java.lang.String
>  source){color} org.elasticsearch.action.update does not exist in
> <{color:#000080}elasticsearch-rest-version{color}>6.1.1</{color:#000080}elasticsearch-rest-version{color}>.
> In attach you can see test for this issue.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to