Improve `search` for `documents` and `annotations`
@ -9,6 +9,8 @@ module AnnotationSearch
with field, search_params[field] if search_params[field].present?
end
order_by :created_at, :desc
paginate page: search_params[:page] || 1, per_page: search_params[:per_page] || 20
@ -77,6 +77,8 @@ class Cdao::Document < Cdao::Base
is_only_in_premium_libraries?
string :citation_finders_names, multiple: true
string :citation_finders_names, multiple: true do
citation_finders_names