Closed (fixed)
Project:
Subsites
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2010 at 13:24 UTC
Updated:
18 Aug 2010 at 07:10 UTC
Hi.
I think this module is just great. I have a question. If my site works with Apache Solr searching module, can I have two independent searchings, one for my site and another one for my sub-site?.
Thanks.
Comments
Comment #1
davyvdb commentedYes, you could implement this easily in your own module.
Using hook_apachesolr_update_index you can add an extra field "subsite". Using the solr module's facet definition hooks you could easily add a new facet.
This will only work easily for nodes that you mark explicitly as being part of a subsite. The ones you mark using a php condition (like if ($node->type == 'news')) are performance wise not easily implemented this way.