Sampling does not work with filters in ES REST API
Request works?select=DOI&sample=1
should randomly select one DOI from the corpus. It works fine in both staging and production, giving a different DOI every time.
When filter is added, however, for example works?filter=member:311&select=DOI&sample=1
, production still works as expected, but staging always returns the same DOI 10.1111/j.1439-0507.2008.01643.x
Definition of ready
-
Product owner: @ppolischuk1 -
Tech lead: @dtkaczyk -
Service:: label applied -
Definition of done updated -
Weight applied
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 -
Consider any impacts to current or future architecture/infrastructure, and update specifications and documentation as needed -
Acceptance criteria met -
Sampling works when combined with filters in ES REST API
-
Edited by Patrick Polischuk