gbif / content-crawler

Crawls CMS and articles from Mendeley into ElasticSearch indexes
Apache License 2.0
1 stars 1 forks source link

publication dates on literature #13

Open MortenHofft opened 5 years ago

MortenHofft commented 5 years ago

It would be useful to have publication date modelled as a date. That would allow us to do charts with publications over time.

http://cms-search.gbif-dev.org:9200/_search?q=contentType:literature

// currently we have
year: 2014
month: 10
day: 5

// it would be nice to also have so we can do date aggregations
publicationDate: 2014-10-05T00:00:00.000Z

This issue is prompted by https://github.com/gbif/portal-feedback/issues/1912

MattBlissett commented 5 years ago

If this is done, it would be nice to have ISO dates with appropriate accuracy.

publicationDate: 2014-10-05