Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.22.0
-
None
-
Unknown
Description
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 doc(java.lang.String source) org.elasticsearch.action.update does not exist in
<elasticsearch-rest-version>6.1.1</elasticsearch-rest-version>.
In attach you can see test for this issue.