Home > Enterprise >  I want to connect firebase with mongodb as alternative of algolia search?
I want to connect firebase with mongodb as alternative of algolia search?

Time:10-07

I have a big project and I want to use firebase storage and full Text search like algolia or elastic search search but want to use mongoDb due to price and some more issue so how can my firebase database send data to mongoDb and How can I pass query to mongoDb

CodePudding user response:

Please use the firebase cloud function to save data on MongoDB on data insert and update in firebase.then you can easily query on mongodb for full text search.

CodePudding user response:

you can not perform a search on Firestore or Realtime Database, it's totally fine to have searchable data duplicated in a different DB. Algolia and Mongo Atlas search are good solutions to use. You need to keep in sync a firestore collection with whatever solution you want to use for search, just create a function the triggers onWrite and insert/update the record.

"functions.store" has ready to use function the keep collection sync with Algolia

CodePudding user response:

here a link to ready to install solution:

https://www.functions.store/function/syncFirestoreDocWithAlgolia-1630766612192

  • Related