is there in-memory search engine for PHP?

Does php have an in-memory search library?
like https://duckdb.org? or lucene?

I'm aware of elasticsearch and solr and redis search, but was hoping for something simpler.