This question already has an answer here:
Copied all my local notes to Apple's iCloud notes. It's been a few days and they haven't indexed yet. I found if I edit a notes file then it gets indexed. I don't want to edit all my notes apps as they maintain the date of last usage. How can I force an index of all the Apple notes?