DataONEorg / metrics-service

An efficient database and REST API for delivering aggregated data set metrics to clients.
Apache License 2.0
2 stars 1 forks source link

Broaden query for identifying DOIs #51

Open datadavev opened 5 years ago

datadavev commented 5 years ago

https://github.com/DataONEorg/metrics-service/blob/caeae83b60f2a90bcae093b1c618f0d904f44a29/src/d1_metrics/d1_metrics/metricsdatabase.py#L476

The query can be expanded to search both the id and seriesId fields using a regex type query to find DOIs such as:

id:/.*doi.*{1,5}10\.[0-9]{4,6}.*/ OR seriesId:/.*doi.*{1,5}10\.[0-9]{4,6}.*/