Skip to content

Commit 2b28db2

Browse files
committed
[FAB-7889] Doc couchdb indexes to use json extension
Document that couchdb indexes defined in chaincode metadata META-INF directory must utilize *.json file extension. Change-Id: I50245d92868a8fa7d462fa13ccc7c716b1010559 Signed-off-by: David Enyeart <enyeart@us.ibm.com>
1 parent 0272eac commit 2b28db2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/source/couchdb_as_state_database.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ syntax:
5959
6060
Indexes in CouchDB are required in order to make JSON queries efficient and are required for
6161
any JSON query with a sort. Indexes can be packaged alongside chaincode in a
62-
``/META-INF/statedb/couchdb/indexes`` directory. Each index is defined in a text file
63-
formatted in JSON following the `CouchDB index JSON syntax <http://docs.couchdb.org/en/2.1.1/api/database/find.html#db-index>`__
62+
``/META-INF/statedb/couchdb/indexes`` directory. Each index must be defined in its own
63+
text file with extension ``*.json`` with the index definition formatted in JSON following the
64+
`CouchDB index JSON syntax <http://docs.couchdb.org/en/2.1.1/api/database/find.html#db-index>`__
6465
For example, to support the above marble query, a sample index on the ``docType`` and ``owner``
6566
fields is provided:
6667

0 commit comments

Comments
 (0)