Lindsey D's answer above worked for me, the stumper for me was that the reindexRebuild Search Indexes feature that used to be in the Settings menu in Craft 2 is no longer there in Craft 3, (there is an Asset Indexes page in the Utilities menu, but that's not what we need here).
So to reindexrebuild the search index in Craft 3, I needed to do this:
- In a command window, move to your Craft root, i.e. (Windows)
cd \inetpub\wwwroot\mycraftsite
- Run the following command
php craft resave/entries --update-search-index
References:
- https://craftcms.com/docs/3.x/console-commands.html
- https://craftcms.com/docs/3.x/searching.html#templating
If there actually is a way to do this without resorting to console commands in Craft 3, please comment.