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

rulley created an issue. See original summary.

rulley’s picture

Got 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)";
}

jmdeleon’s picture

Status: Active » Closed (fixed)