Q: Only search content on one site?

Events happening in the community are now at Drupal community events on www.drupal.org.
slayerment's picture

I have a multisite setup right now and it is sharing all the nodes in my DB. When I index the content from each one of my sites it indexes all the nodes, where I would rather it just index the nodes for that particular site. Is there a way to only index and display results for the current site?

Thanks,
Quinton

Comments

even better: search content on one site OR all sites...

drupalista's picture

I would like to second your question with a small modification: is there a way to let the user choose to search only the actual site, multiple sites or all sites?

Or is it better to use groups for this kind of feature?

Note

agentrickard's picture

We finally tested this on Domain Access, and, by default, node access rules apply to search. In the case of Domain Access, this means that you are only returned results that are visible on the current domain.

It would be fairly easy to add tabs for each domain using a Domain Search module.

For other modules, like OG, I think you would need to implement hook_search to create new tabs that fire the searches that you want.

--
http://ken.therickards.com/
http://savannahnow.com/user/2
http://blufftontoday.com/user/3

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: