projectblacklight / blacklight-access_controls

Provides access controls for Blacklight-based Rails applications.
2 stars 3 forks source link

Use terms query for groups #17

Closed jcoyne closed 8 years ago

jcoyne commented 8 years ago

This makes the queries significantly smaller.

Fixes projecthydra/hydra-head#203

erikhatcher commented 8 years ago

You may want to leverage param indirection, so instead of ({!terms f=discover_access_group_ssim}public) OR ({!terms f=read_access_group_ssim}public), could do something like ({!terms f=discover_access_group_ssim v=$groups}) OR ({!terms f=read_access_group_ssim v=$groups})&groups=public - that simplifies the query parsing of that OR'd {!terms} for one thing.