Date filters don't seem to limit much
Created by: MikeYalter
This is likely an open-ended investigation, and it sounds like the kind of thing that @dtkaczyk could quickly get to the bottom of.
https://api.crossref.org/prefixes/10.1016/works?filter=from-pub-date:2010-01,until-pub-date:2010-01 results in 55471 records
http://api-es-staging.crossref.org/prefixes/10.1016/works?filter=from-pub-date:2010-01,until-pub-date:2010-01 results in 950380
Doing the same queries with 2016 instead of 2010 results in different numbers, and the second record in my result shows that the publication date is 2016-02-01 http://api-es-staging.crossref.org/prefixes/10.1016/works?filter=from-pub-date:2016-01,until-pub-date:2016-01 The second record is "DOI": "10.1016/j.jmii.2013.01.003"
Definition of Done
-
Verify against the latest version on staging -
until-*-date
and all partial dates (issued
,published
,posted
) are filtered appropriately -
Changes available via a staging URL -
Code reviewed -
Unit tests identified, implemented, and passing -
Public documentation reviewed and updated -
Knowledge base reviewed and updated
Developer Notes
- The filters are also used in the Event Data API so we should be careful to get the spec right.
- The filters should include the first and the last date inclusive. So from=2019-01-01 until=2019-01-01 should return results from that one day.
Edited by Patrick Polischuk