Skip to content

Commit

Permalink
Merge pull request #6264 from IQSS/2291-search-date-range
Browse files Browse the repository at this point in the history
document how to search date ranges via API #2291
  • Loading branch information
kcondon authored Oct 10, 2019
2 parents 67da504 + 21e7597 commit 8991919
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/sphinx-guides/source/api/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ A quick example search for the word "data" is https://demo.dataverse.org/api/sea

See the :doc:`search` section for details.

Finding Recently Published Dataverses, Datasets, and Files
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

See :ref:`search-date-range`.

It's also possible to find recently published datasets via OAI-PMH.

Downloading Files
~~~~~~~~~~~~~~~~~

Expand Down
9 changes: 9 additions & 0 deletions doc/sphinx-guides/source/api/search.rst
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,15 @@ In this example, ``show_relevance=true`` matches per field are shown. Available
}
}
.. _search-date-range:

Date Range Search Example
-------------------------

Below is an example of searching across a date range of dataverses, datasets, and files that were published in 2018.

`https://demo.dataverse.org/api/search?q=*&per_page=1000&sort=date&order=asc&q=*&fq=dateSort:[2018-01-01T00\:00\:00Z+TO+2019-01-01T00\:00\:00Z] <https://demo.dataverse.org/api/search?q=*&per_page=1000&sort=date&order=asc&q=*&fq=dateSort:[2018-01-01T00\:00\:00Z+TO+2019-01-01T00\:00\:00Z]>`_

.. _iteration-example:

Iteration
Expand Down

0 comments on commit 8991919

Please sign in to comment.