outbreak-info / outbreak.info-resources

A curated repository of metadata of resources on COVID-19 and SARS-CoV-2
MIT License
0 stars 4 forks source link

`date` mapping is incorrect #184

Closed flaneuse closed 2 years ago

flaneuse commented 2 years ago

For the Resources API, it looks like the ES mapping of the date field is probably a string, not date type, since this query doesn't correctly filter dates: https://api.outbreak.info/resources/query?date:[2020-01-01%20TO%20*]&size=10&fields=date

On 14 October, the query was working properly. Not sure what changed since then, but it looks like the LST parser doesn't have date in its mapping file.

flaneuse commented 2 years ago

My fault-- accidentally deleted q= from the query.