This is a nice way to offload search
https://martech.zone/replace-wordpress-search-with-cloudflare-workers/
I've seen this on a couple content management systems - they just aren't designed to have good search on large, busy sites. You either end up with a massive index or a massive DB load. I've seen Drupal indexes grow to be larger than everything else on the site. But then if you do a search that can't use the index, it can be a very slow query.