algolia / firestore-algolia-search

Apache License 2.0
112 stars 35 forks source link

Firestore "Extension" and >1 Collection #184

Closed jimb2834 closed 11 months ago

jimb2834 commented 1 year ago

Hello,

Usecase: We assumed using Algolia with Firestore allowed us the ability to add many collections from one project.

Is there a limitation of ONE collection per Firestore project?

In setting up the extension (version 1.1.3) it states

a) Collection Path b) Algolia Index Name

Because it is only 1 extension per Firestore project it would be assumed the extension is used across all "collections" and you would add inscope Collection names inside Algolia. Then, within Algolia you would add indexs.

Where do we add other collections from the same project?

smomin commented 1 year ago

The Firebase Extension framework allows for one extension per collection. This is not an Algolia limitation but a Firebase Extension Architecture. If you are looking to monitor multiple collections and send it to the Algolia, you can install the Algolia Firestore collection multiple times.

jimb2834 commented 1 year ago

@smomin - Yes I did try and it works. If they add that to the documentation it would be helpful. Thank you for the reply

smomin commented 11 months ago

I will add this my to do list.