denshoproject / ddr-cmdln

Command-line tools for automating the Densho Digital Repository's various processes.
Other
0 stars 2 forks source link

Search date ranges #233

Open gjost opened 1 year ago

gjost commented 1 year ago

Tom Ikeda:

Is there a way to search the DDR for a particular date range, e.g., 1900-1910? I know we tag by date, but wondered how to access. I was copied to a thread (see below) where doing a search for content by decade would be useful.

Elasticsearch does offer the ability to search date ranges if the data is in a date format: https://www.elastic.co/guide/en/elasticsearch/reference/7.17/query-dsl-range-query.html https://www.elastic.co/guide/en/elasticsearch/reference/7.17/search-aggregations-bucket-daterange-aggregation.html