For the 3 people interested, i've found a somewhat useful 'setup' with terminal , which could perhaps be usefull for some, given some (current) limitations.
U can run your own search engine on device in terminal with docker (compose).
https://github.com/searxng/searxng-docker
or
https://github.com/benbusby/whoogle-search
U could then acces your search engine from any browser http://192.168.0.2:port
Limitations: Terminal doesn't work when connected to a vpn, and even when u disable it from using your vpn with split tunneling, u can't acces it from your browser if it is still routed through a vpn. In this case this setup only works when browser and terminal aren't routed through a vpn.
So not very conveniant for most of us probably.
However, there is a way to accomplish this.
If u use tailscale on your device, with an exit node as vpn configured, u can disable terminal in split tunneling in tailscale. In terminal u can install tailscale and add it to your tailnet. Now u can acces your locally hosted search engine on http://100.x.x.x in any browser, while still using a vpn.
I'll still have to figure out if i can install wireguard and route the search engine's queries through a separate vpn tunnel, instead of using your real public ip, aswell as perhaps in tailscale assign a hostname.
If this could be accomplished, this would mean that your whole device still uses vpn and u would have a privacy respecting locally selfhosted search engine, which uses a separate vpn tunnel (which could change every x minutes, with some scripting and all wg configs of your vpn provider)
Maybe someone who likes to tinker, find some value in this.