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

davyvdb’s picture

Status: Active » Fixed

Yes, 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.