Actually when testing this I realize I have misunderstood the behavior
of bundle_search.
I was hoping to be able to run two queries and get one set of results
back with the combined hits.
I need to be able to do a search with filters like those:
:with=>{search_access_tag=>access_tags_from_first_user}
AND
:with=>{search_access_tag=>access_tags_from_anon_user,
"geoblock_disabled_for_#{@country_code.downcase}"=>true}
So in the first case I get an array of access tags from the logged in
user and in the second case I get an array of access tags from an
anonymous user if the geo_blocking is disabled for that document for a
given country.
Any ideas how I could implement this in a single query? Or if I can
somehow merge the result sets from two queries while still making
pagination and facets work.
Best regards,
Robert