Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12774

Error during type conversion from type: java.lang.String to the required type: org.elasticsearch.action.update.UpdateRequest

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Estimated Complexity:
      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.

        Attachments

          Activity

            People

            • Assignee:
              acosentino Andrea Cosentino
              Reporter:
              johnbolshakov Ivan Bolshakov

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment