[ https://issues.apache.org/jira/browse/CAMEL-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16658720#comment-16658720 ]
Andrea Cosentino commented on CAMEL-12892: ------------------------------------------ As you may see from the documentation here: [https://github.com/apache/camel/blob/master/components/camel-couchbase/src/main/docs/couchbase-component.adoc] The view is used only from the consumer point of view, if you want to get a document by id, you need to use the Couchbase Producer and specify the headers needed. That's why you get an error on the view. You can see how the consumer works here: [https://github.com/apache/camel/blob/master/components/camel-couchbase/src/main/java/org/apache/camel/component/couchbase/CouchbaseConsumer.java] You can do something like: {code:java} // from https://github.com/apache/camel/blob/master/components/camel-couchbase/src/main/docs/couchbase-component.adoc from("direct:start").to("couchbase:http://localhost/test?username=username&password=password?operation=CCB_GET&key=yourkey").log(body().toString()); {code} I didn't test this route, it's just written on the fly. Hope this help. I'll review the adoc documentation and add some example. Have a nice day. > [CAMEL-COUCHBASE] Get document from couchbase error > --------------------------------------------------- > > Key: CAMEL-12892 > URL: https://issues.apache.org/jira/browse/CAMEL-12892 > Project: Camel > Issue Type: Bug > Affects Versions: 2.22.1 > Reporter: michael elbaz > Assignee: Andrea Cosentino > Priority: Major > > /!\ IT IS NOT RELATED TO COUCHDB BUT TO COUCHBASE > > I try to get a document from couchbase and i getting this error > {code:java} > because of Could not load view "brewery_beers" for design doc "beer" > {code} > So couchbase is a key value engine i just want to get a document by this key > and without using view how i suppose to do that ? could someone fix this or > remove this component from camel (there is not point tho have this component > if there is no possibility to get document with the key from a key value > storage engine). > There is even not a camel-couchbase option in Jira. -- This message was sent by Atlassian JIRA (v7.6.3#76005)