As a matter of fact, I remember seeing this project posted about a bit ago: https://github.com/marsara9/lemmy-search
It can be selfhosted with docker or you can use the hosted version at: https://www.search-lemmy.com/
An announcement post is here: https://lemmy.world/post/963301