I have a multisite setup and and a search bar at the top of each site. Currently it just searches within that site:
{% set theSite = craft.app.request.getSegment(1) %}
{% paginate craft.entries.search(search).site(theSite).orderBy('score').limit(9) as pageInfo, pageEntries %}
The first segment defines the site. I need to expand the searches to include all entries in all sites. Is this possible? I tried variations of getAllSites and just .site but of course those didn't work.
If its not possible to search all sites at once I may look at running each search and adding all of the results together.