In ES REST API multiple filters of the same type are handled incorrectly
In production, it is possible to use multiple filters of the same type, and the results are OR-ed. For example:
https://api.crossref.org/works?filter=type:journal-article,type:posted-content - contains items of both types
In staging it is also possible, but all filters except for the last one are ignored:
https://api.staging.crossref.org/works?filter=type:journal-article,type:posted-content - only posted content
https://api.staging.crossref.org/works?filter=type:posted-content,type:journal-article - only journal article
This applies to all filters.
Definition of done
-
Available via a staging URL -
Code reviewed -
Unit tests identified, implemented, and passing -
Public documentation reviewed and updated -
Knowledge base reviewed and updated -
Acceptance criteria met -
If multiple filters are included in a request, combine filters with "OR" logic, returning results from any of the combined filters, like it works in production
-
Edited by Patrick Polischuk