public static DesignDocument create ( String body , String name ) throws DesignParseException { DesignDocument doc = new DesignDocument ( body ) ; doc . id = "_design/" + name ; doc . load ( ) ; return doc ; }
Create a new design document