I mean, you can easily self host a meta-search engine like Searx, Searx-ng, Whoogle, etc. I run Searx-ng and it sends your queries to multiple engines and aggregates the results for you.
To host your own search engine, you'd need to crawl and index every site. It's certainly doable, but it would take a lot of time /effort.