I use the Notes app on my Mac to write scripts for my YouTube channel. I use if for other things as well, but this is my main use for it. So I'm not frequently using the app. This week I've noticed that the Search function doesn't work all the time. It seems that a temporary fix is the go into the iCloud part of MacOS setting and toggle of Sync this Mac. Wait for a minute or so (you'll see the all the notes disappear) and then turn it back on. Eventually everything catches up and I can search again. However this doesn't seem to stick.
When you go to Spotlight in Settings, you'll see a couple sections with endless progress wheels spinning. When everything works those sections are showing what's available to Spotlight.
Some kind of combination or turning off and then turning on Notes iCloud sync and restarting the computer seems to get everything back to normal most of the time. Sometimes it takes more than once. Is there something I can do to prevent the loss of search in Notes? iOS doesn't have the issue, just on my Mac.
Below are how Spotlight settings look when working and when not: