Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Just wondering if anyone has done anything with views filters/contextual filters and solr join queries? was looking at the solr across collection joins as I need to do something like that.
Comments
Comment #2
rulley CreditAttribution: rulley commentedGot this to work by modifying the solr query in a custom module... just provided my own form filter on the search form that passes values in the query string.. here is a sample
function MYMODULE_search_api_solr_query_alter(array &$call_args, SearchApiQueryInterface $query) {
global $user; //declare the global user object
$userid = $user->uid;
$emailedoptions = $_GET['syncedon_emailedoptions'];
if ($emailedoptions == 1) {
$call_args['params']['fq'][] = "-({!join from=ss_field_pro_cont_form_sarnia_id fromIndex=test2 to=id}is_author:$userid)";
}
Comment #3
jmdeleon CreditAttribution: jmdeleon commented