Skip to content

Adjust pubdates when day resolution not available #253

@aaccomazzi

Description

@aaccomazzi

Most records in the ADS database have "00" in the day field for a pubdate (e.g. "pubdate":"2020-01-00").
While we have a special case for handling these records when we create the date field (which in this case gets set to 2020-01-01T00:00:00Z), we don't do so with pubdate, which causes the record to be missed when one performs a range query such as pubdate:[2020-01-01 TO 2020-01-31].

I believe we originally resisted manipulating the pubdate because "00" carries the information that the actual day of publication is unknown (as opposed to being exactly the first day of the month), but unless this is handled as a special case at indexing time, the current situation leads to incorrect results. Opinions @romanchyla?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions