You can always build a small search webservice that you open source and that your proprietary software calls out too, removing the need to open source everything.
Linux is GPL too, didn't hinder companies making trillions on top of it.
Linux is not a good example because of the syscall exemption. The licensing situation is not at all comparable as xapian’s original point of existence was embedding.
A lot more than a decade. I've been using it for 15 years at it was a very mature project even then. Repo history goes back to 1999 and according to the history page the project's roots go back to the 80s. A bit like Postgres in this respect.
I used it commercially, at a very big international company. All users had access to its unmodified source code and templates. There was no trouble at all.
The project at one point started tracking files for potential rewrite to rid itself of GPL history. I used it many years ago and I quite enjoyed it (pre elastic search times) but unfortunately the license situation didn’t help the project to become popular.