Closed (fixed)
Project:
Sarnia
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 May 2016 at 22:52 UTC
Updated:
13 Jul 2016 at 18:47 UTC
Jump to comment: Most recent
Comments
Comment #2
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 commented