This project has been around and maintained for more than a decade! Small footprint, good speed. One downside might be GPL v2 for commercial use.
Linux is GPL too, didn't hinder companies making trillions on top of it.
https://xapian.org/history https://sigir.org/files/forum/S2000/MUSCAT_note.pdf
Maybe not exactly the same, its a server that you can store documents and then retrieve their ID using a search string.
Xapian is more like sqlite while elastic would be mariadb