Imported from the Apple Support Forums via the Wayback Machine 🔗
If you are using the Desktop & Documents option in System Preferences->iCloud->iCloud Drive->Options, then your files act as if they were local to your Mac, and you can use Spotlight, or Siri to search normally.
If you are just storing files in icloud directly, you can open Finder and then open the iCloud folder there, and use Finder's own search like you would in any other folder.