Filtering by reference visibility returns no results in ES REST API
In staging, filtering by reference visibility always returns 0 items:
https://api.staging.crossref.org/works?filter=reference-visibility:open
https://api.staging.crossref.org/works?filter=reference-visibility:limited
https://api.staging.crossref.org/works?filter=reference-visibility:closed
The same filters work in production:
https://api.crossref.org/works?filter=reference-visibility:open
https://api.crossref.org/works?filter=reference-visibility:limited
https://api.crossref.org/works?filter=reference-visibility:closed
The visibility is a property of the prefix and this information is indexed along with member information (https://api.staging.crossref.org/members). This issue requires a bit of investigation how and when this property is joined with works for this filter.
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 -
filtering by reference-visibility filters results by reference-visibility like it does in production
-