Create a design document with Java?


#1

How do I create a design document (or for that matter a view) using the Java API?
I found this link http://www.couchbase.com/docs/couchbase-sdk-java-1.1/couchbase-sdk-java-… but it doesn’t explain what to do when the return is false (it failed) in order to get more detail. Ideas?


#2

Hello,
This is not yet part of the documentation, this is something that will be added soon.
However you can find some informations here:


#3

+1 on that blog post. I used it with good success. Just know, the view won’t be ready to use immediately. See this question for tips on working around that if you need to use the view right away.
http://www.couchbase.com/communities/q-and-a/new-views-are-immediately-available