Use ejson_body when opening design documents
diff --git a/src/couch_index_server.erl b/src/couch_index_server.erl
index 146ed39..8fe4b18 100644
--- a/src/couch_index_server.erl
+++ b/src/couch_index_server.erl
@@ -65,7 +65,7 @@
get_index(Module, <<"shards/", _/binary>>=DbName, DDoc) ->
{Pid, Ref} = spawn_monitor(fun() ->
- exit(fabric:open_doc(mem3:dbname(DbName), DDoc, []))
+ exit(fabric:open_doc(mem3:dbname(DbName), DDoc, [ejson_body]))
end),
receive {'DOWN', Ref, process, Pid, {ok, Doc}} ->
get_index(Module, DbName, Doc, nil);