Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/source/ExamplesDocDBRestApi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@ REST API using the provided Python client.
Querying Metadata
~~~~~~~~~~~~~~~~~~~~~~

.. note::

There are a several indexed fields in the DocDB metadata collection to support
efficient query execution by limiting the number of documents to be scanned.
Please use these fields in your filter queries whenever possible.

Currently, the following fields are indexed in the v1 (``metadata_index/data_assets``)
collection: ``_id``, ``name``, ``location``, ``subject.subject_id``,
``data_description.project_name``, and ``data_description.modality.abbreviation``.

The same fields are indexed in the v2 (``metadata_index_v2/data_assets``) collection,
other than spelling for the modality field (``data_description.modalities.abbreviation``).


Count Example 1: Get # of records with a certain subject_id
-----------------------------------------------------------

Expand Down