Apache solr intergration

hefox - October 9, 2009 - 14:55
Project:Search Restrict
Version:6.x-1.3
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

<?php
function search_block_apachesolr_node_exclude($node){
    return
$node->search_block;
}
?>

That should work, will update if it doesn't; see apache documentation on hooks for hook_apachesolr_node_exclude description.

I'm not bothering with a patch being that I assume this module has been abounded.

#1

deviantintegral - October 9, 2009 - 16:15
Project:Restricted Search» Search Restrict
Version:6.x-1.x-dev» 6.x-1.3

Neat!

I'm moving this over to the Search Restrict module as it would be a good feature over there, and I'm depreciating this module in favour of that one.

#2

hefox - October 9, 2009 - 16:51

the node_exclude is used for when indexing, so would be a bad candiate for variable content type exclusion (also note apacheslr already excludes content types global setting). ; likely what you'd need for a by role restriction is the query_alter hook (it's in apache solr documentation); there's also some other hooks that may be useful but I didn't read too much into it.

 
 

Drupal is a registered trademark of Dries Buytaert.