How to create and publish views using Java Client Programatically?

I have been trying to create views in couchbase server using Java Client Library 2.1.3. But I failed to find a documentation for the same. Can someone help me with it ?

Hi,

you can find some good examples in the integration test of the SDK: https://github.com/couchbase/couchbase-java-client/blob/master/src/integration/java/com/couchbase/client/java/DesignDocumentTest.java