Loupe Cross-Site Search
Cross-site search for WordPress multisite, built as an add-on to Loupe Search.
by Per Soderlind · github.com/soderlind/loupe-cross-site-search · website
★ 1stars
10release downloads
0forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/soderlind/loupe-cross-site-search/releases/download/1.2.0/loupe-cross-site-search.zipFrom the readme
Loupe Cross-Site Search
Cross-site search for WordPress multisite, built as an add-on to
Loupe Search. It maintains one
combined Loupe index across the sites in
your network and exposes a single search endpoint on a designated hub site,
so a visitor can search every participating site at once and get one ranked list
of results.
How it works
- Combined index. Instead of querying each site's index at search time, the
add-on mirrors documents from every participating site into a single index
(one Loupe database per post type) stored at a network-global path. Ranking and
pagination are then a single, native operation. (ADR 0001)
- In-context mirroring, no switchtoblog. Each site mirrors its own posts
into the combined index from within its own request context, reusing Loupe
Search's document builder so per-site options and filters apply. Backfill runs
each site in its native context via a separate WP-CLI bootstrap. (ADR 0002)
- Composite identity. Documents are keyed {blogid}{postid} and store
blogid, blogname, and url, so results carry site attribution and link
correctly across the network.
- Public, published content only. Mirrors what Loupe Search itself exposes.
Read the full README on GitHub →