Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confusing results using from-pub-date or from-published-date #582

Open
andreaspacher opened this issue Jul 2, 2023 · 2 comments
Open

confusing results using from-pub-date or from-published-date #582

andreaspacher opened this issue Jul 2, 2023 · 2 comments

Comments

@andreaspacher
Copy link

andreaspacher commented Jul 2, 2023

Hello, thanks for the great service with the CrossRef API!

When I use a query like this ...

https://api.crossref.org/journals/1942-7786/works?query=from-pub-date:2019-06-01&select=is-referenced-by-count,DOI,title,published&rows=1000&cursor=*&debug=true

... I would expect to see all publications from ISSN 1942-7786 published since 1 June 2019.

However, the list includes publication dates before 2019 (like from 2009, from 2010 etc.), and it actually omits publications that should be listed, such as this one: https://api.crossref.org/works/10.1177/1942778620918041​ (published 2020).

Is there anything wrong with my query? When I replace from-pub-date with from-published-date, the results do not change.

By the way, I notice similar issues with other ISSNs as well, so the confusing results do not seem to be grounded in the journal.

Thank you for your help!

@dtkaczyk
Copy link
Collaborator

dtkaczyk commented Jul 2, 2023

Hi @andreaspacher

Thanks for using the API!

In this case, a filter should be used: ?filter=from-pub-date:2019-06-01&.... This will have the effect of filtering based on the value of a specific field.

In your current version, a query performs a full text search using given terms, in this case "from", "pub", "date", "2019", "06, "01". It does not interpret the value in any way. This is probably not what you want.

@andreaspacher
Copy link
Author

Thank you for your help! You are right, I get the correct results now. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants