I think the best way to do it is to index all the posts and search through them in database. This method should be the fastest when you perform a search because you can filter posts, create the pagination etc. Check this tutorial https://rudrastyh.com/wordpress/search-across-wp-multisite.html
Another way is to to something with switch_to_blog()
function – I mean to search each site individually and then to rearrange the results, but I suppose it would be a very slow code. Especially if you have a lot of site in your network.
Related Posts:
- using 1 form shortcode (si or cf7) for all multisite sites [closed]
- BP Multi Network & Members Directory [closed]
- Creating a better multi-site search experience
- Global searchin multisite but only with one subsite
- Make WordPress Search for Both Main Domain and Subdomain
- Multi Site Search Pagination is Broken
- How can I use WP_Site_Query to find a blog by blog name?
- How to unindex a single blog in Multisite?
- Is a multisite install what I need?
- Search returns “Nothing Found” on a sub directory
- Get variable from previous blog while using switch_to_blog
- Is there a full explanation on how to share a database with two WordPress sites on same server?
- restore_current_blog() vs switch_to_blog()
- How to get blog name, when using WordPress Multisite
- Which asset URLs are acceptable in a “vanilla” MU install?
- Using MAMP and Xip.io to view a WordPress Multisite on a local network
- REST API for Multisite
- How can I display all Multisite blogs where this user is administrator?
- Multisite: use media from one site vs. copying the same media to all language sites?
- Create unique robots.txt for every site on multisite-installation
- Nginx rules for subdomain multisite install (Bedrock)
- “Upgrade Network” error: stuck with SSL certificate verification
- Ideal WP multisite server setup for up to 1000 sites?
- when using add_user_to_blog getting error “Call to undefined function get_userdata”
- Restrict the user access in multi site for non-assigned blogs
- WordPress Multisite – is it possible to put the main site in a subdirectory?
- W3 Total Cache – How to disable “Performance” menu under multisite? [closed]
- How to clone and locally run a network for testing
- the blog owner multisite
- Multisite without .htaccess
- How to prevent first post and first comment on WP MU?
- Multisite installation on IIS gives 404 trying to access the admin dashboard
- Is Partial SSL Possible? ( multisite )
- In Multisite “Sites” list, what do “deactivate” and “archive” really do?
- How to properly force https and www on multisite with Apache HTAccess
- How to Rename wp-login.php for Multisite?
- Why does the My Site dropdown show only a single domain?
- Does WordPress MultiSite use separate MySql databases?
- Performance on WPMS
- Display site administrator’s id by current blog id inside link
- SELinux security vs WordPress updates
- Installed domain-based Multisite but can’t access wp-admin (redirect loop)
- Switch MultiSite main site with another (multilingual sites) – with subfolder – no subdomain
- WordPress Multisite’s in subdirectory not redirecting to dashboard settings
- Multisite: How can I have the admin bar (toolbar) use the language of the user instead of the language of the sub-site being viewed?
- My Media Library is broken across all my subsites
- How to host unrelated pages on WordPress domain
- Updated to version 3.8 and Admin pages are very slow. How to diagnose problem? [closed]
- Multisite install on subdomain w/ subdomains change siteURL
- Make uploads live outside of the WP folder
- Multi-Site Subfolder User Permission Issue
- Programmatically Add Item to WP Multisite Menus
- why there is a large file named core in wpmu’s directory?
- WordPress multi-site, developing locally and syncing live changes
- wp_get_attachment_image_src on multisite
- Problem with parked domain for my mutisite
- Error : Cookies are blocked or not supported by your browser
- How To Run Multiple Multi-Site Networks On Same Box [closed]
- Changed sub-site to its own domain trigger 302 redirects for all page links
- Multisite – big hosting package or several hosting packages?
- WordPress network vs Separate installs
- Multiple Websites that share some content types and not others
- Solving a get_user_meta() problem in Multisite
- How to use the sunrise.php script for Multisite network domain mapping?
- Page Builders and WP Multisite
- How to pull data from child installation to parent theme
- Which is the correct way to migrate content from single WP to WP multisite
- How to have one installation at blog.example.com and multiple blogs in sub folders such as blog.example.com/userA?
- Infamous admin login redirect
- Running hundreds of WP in multisite
- get_site_option / update_site_option – the main site and sub sites do not share the same storage
- Create link preview for theme wordpress
- Bitnami multisite change URL of secondary blog
- Language per user role, how can I achieve this?
- Number of total comment does not tally with the number of comment?
- Woocommerce Multisite global search how to mod ajax function?
- Domain not redirected correctly with WordPress Multisite
- No debug log for WP multisite is created
- Subsites in Multisite throw 404 in wp-admin
- WordPress theme to support single website but with 3 sections for 3 languages
- Can assign a new domain to a site in a multisite?
- Possible to have duplicate usernames on different two multisites
- Main site media are accessible in subsite domain
- Update siteurl and home in multisite subsites to https
- WordPress multi-domain with multiple sites with multiple languages
- Including non-wordpress pages within a single multisite domain
- Domain level problem for multisite?
- How can I import posts into different wordpress multisites at once?
- Redirect www.mainsite.com/subsite/wp-login to www.mainsite.com/wp-login
- Activation of new Registered site fails on multisite
- Migrate site from WordPress multisite to another WordPress multisite
- How to login a user with wp_set_auth_cookie on a specific blog within a multisite environment
- Split a Multisite Into Single WordPress Websites
- How does adding custom meta to signup form work?
- Can’t un-archive site after upgrading to WordPress 3.8
- How to handle responsive and non responsive websites in one WordPress Theme?
- Is it possible to put a site other than #1 as a Multisite top-level domain?
- Should I go for Multisite or separate WP Installation?
- Swap domains of two sites with each other in multisite
- Many big issues in the website, WP_Debug not showing