Integrate Elasticsearch (or other full text search engines) with Realm?

What’s the best way to integrate something like Elasticsearch with Realm? Or any other fulltext search engine, I’m looking at minisearch for Node.

I’ve read about ways to use Elasticsearch with MongoDB, but that’s not really what I’m looking for. I’m looking for a solution that…

  1. Works offline
  2. (less important) Doesn’t result in huge amounts of replicated data between the search engine and Realm

Any suggestions?