Export all the engine documents to firebase

I am in the learning phase of App Search, I had a scenario where I want to move all the data that is stored in the app search engine to account in firebase? Could someone help me how we can achieve this? Assume there are a million documents in my engine.

I also checked whether logstash has an input plugin but no luck.