Search api solr create a custom search link I try to create a custom search link like this :

l(t('See our Job Ads'), 'search', array('query' =&gt; array('f[0]' =&gt; 'is_recruiter_nid:' . $nid )));


when i click on the link nothing get filtered.
P.S : i have added the filter 'is_recruiter_nid' in code using the hook_search_api_solr_documents_alter() Something like:

function MYMODULE_search_api_solr_documents_alter(array &amp;$documents, SearchApiIndex $index, array $items) {
  foreach ($documents as $document) {
     ...
     $document-&gt;setField('is_recruiter_nid', $recruiter-&gt;nid);    
  }
}


How I can do this? Is there any example ?

Thanks for your help.
f[0] param doesn't work directly. To allow ApacheSolr to filter results based on custom fields you will need to define them as facet (checkout FacetAPI module) or you can implement hook_apachesolr_query_alter and add your own filters in it.