We needed to allow cross-site searching in a multisite application, so I created a plugin for this. It’s extremely feature-thin, but gets the job done for us. It does respect open-vs-closed entry statuses, and it does check your search-enabled custom weblog fields. Weblog entries configured as pages in the Pages module are linked to their page URI. All other entries are linked to the path provided in the weblog search result path preferences. This plugin doesn’t change the built-in search functions, so you can use both single-site and cross-site searches in the same application if you wish.
Feel free to download, modify, and use the plugin for anything you like. Please do let us know if it’s helpful to you.
http://www.twomile.com/services/add-on/expression-engine-multi-site-search-helper
If you improve it, send me your updated version and I’ll post. This useful life of this plugin may be brief; there’s a feature request to allow cross-site searching within the base search features, here:
This looks like it might be just what I’m looking for. I’m trying to use it to search a custom field but I’m not clear on the syntax. This is what I have that works on site_1 but not site_2:
{exp:weblog:entries site="e_calendar" search:loc_city="Ansonia|Beacon Falls|Derby|Naugatuck"
weblog="{my_weblog}" sort="asc" limit="3"}
...{/exp:weblog:entries}
Thanks.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.