Inconsistent search results in multi-site setup (prod/stage) I have set up a staging site alongside production just like the docs describe (Craft Solo 3.4.24). I have copied the &quot;Site Settings&quot; for all sections and set the &quot;Propagation Method&quot; to &quot;Save entries to all sites enabled for this section&quot;.
Because Craft had trouble replicating all entries in one queue job I did this manually via CLI using ./craft resave/entries --type=&lt;type&gt; and ./craft resave/entries --section=&lt;section&gt;. This worked beautifully.
But I have an issue with the site search. Locally, when I search e.g. for 'citizen', I get the expected results (count is 60). Same on production. But on stage I get only 2 results back.
When I add .site('*') to the query in Twig I get 120 results back, so the staging site does have all entries.
It appears as if the search index on stage is not complete? Is there anything I can do to refresh it?
Thank you!
The resave/entries command has an optional parameter to rebuild the search indices - may be worth a shot:
./craft resave/entries --update-search-index
https://craftcms.com/docs/3.x/searching.html#rebuilding-your-search-indexes