anchor.diff:  
       Suffix4 = case ns_bucket:storage_mode(BucketConfig) of
                     couchstore ->
  -                      [{replicaIndex, proplists:get_value(replica_index, BucketConfig, true)} | Suffix3];
  +                      DDocsURI = bin_concat_path(["pools", "default", "buckets",
  +                                                  Id, "ddocs"]),
  +                      [{ddocs, {struct, [{uri, DDocsURI}]}},
  +                       {replicaIndex, proplists:get_value(replica_index, BucketConfig, true)}
  +                       | Suffix3];
                     _ ->
                         Suffix3
                 end,
  
positive.code:               {stats, {struct, [{uri, StatsUri},
                                  {directoryURI, StatsDirectoryUri},
                                  {nodeStatsListURI, NodeStatsListURI}]}},
                {ddocs, {struct, [{uri, DDocsURI}]}},
                {nodeLocator, ns_bucket:node_locator(BucketConfig)}
                | Suffix4]}.
  
  
negative.code:     end.
  
  add_couch_api_base(BucketName, BucketUUID, KV, Node, LocalAddr) ->
      NodesKeysList = [{Node, couchApiBase}, {{ssl, Node}, couchApiBaseHTTPS}],
  
      lists:foldl(fun({N, Key}, KVAcc) ->
                          case capi_utils:capi_bucket_url_bin(N, BucketName,
                                                              BucketUUID, LocalAddr) of
                              undefined ->
                                  KVAcc;
                              Url ->
                                  {ok, BCfg} = ns_bucket:get_bucket(BucketName),
                                  case ns_bucket:storage_mode(BCfg) of
                                      couchstore ->
                                          [{Key, Url} | KVAcc];
                                      _ ->
                                          KVAcc
                                  end
                          end
                  end, KV, NodesKeysList).
  
  %% Used while building the bucket info. This transforms the internal
  %% representation of bucket types to externally known bucket types.
  