Unified search across separate WordPress installations

I have many (100+) different WordPress installations across different servers and I’d need to have a centralized search… engine? to be able to search in all of the websites at once. I’m not running WordPress Multisite and installing it is not an option. Moving all the sites to the same server isn’t an option either.

I’ve been researching for solutions and I’ve come across both ElasticSearch and Apache Solr, both seemingly built on top of Apache Lucene. There seems to be plugins for both systems, but none of them mention multi-website search.

How could I set this up? Do you have experience setting a search across multiple WordPress installations?

5 s
5

You should move your sites to the same server and same DB and then you will be able to run whatever queries you. Barring that, the only alternative I know to writing your own search engine is to use google’s site search API which gives you access to the raw data instead of the snippets google usually displays. Cheapest tier is 100$/yr which is probably why you will not find many plugins for it.

Another option is to have some replication of the DBs into yet another server (or the one where the site with search functionality is), and run searches on it. But even that way it will be better if all servers are at least in a local network to have less potential security issues.

Leave a Comment