Open rhigman opened 1 year ago
OR
statementsThe existing filter logic creates two kinds of OR
statements:
filter_param_1
might be used to check for works whose workType
equals monograph OR edited_book
(this case was covered in the original design above)filter
might be used to check for works whose title OR abstract
contains keyword
In progress at https://github.com/thoth-pub/thoth/tree/feature/486_rework_filtering. Basic proof of concept achieved for statement type 2 above. Design work still needed on how to also handle type 1. Currently on hold.
Originally posted by @ja573 in https://github.com/thoth-pub/thoth/pull/484#pullrequestreview-1330564442
To do:
filter
,filter_param_1
,filter_param_2
andfilter_param_3
inCrud::all()
andCrud::count()
with a singlefilters
param, as abovecrud.rs
modules intographql/model.rs
, continuing to expose most of the existing field-specific filter params to the user for compatibility/ease of useOR
statements