algolia / firestore-algolia-search

Apache License 2.0
112 stars 35 forks source link

Multiple Collection Support #55

Closed kevin-induro closed 3 years ago

kevin-induro commented 3 years ago

We currently sync multiple collections into different indices in Algolia. From reviewing the implementation here, it does not seem like that's currently supported. The Algolia website (https://www.algolia.com/developers/firebase-search-extension) does list that it's possible ("Set up or combine multiple collections, or sub-collections, into a single search index"), so am I missing something?

smomin commented 3 years ago

The statement is referring to setting up the firestore extension on your collections to point to the same Algolia index. With this approach you will have a mix of content in one index from different collection sources.

kevin-induro commented 3 years ago

I could figure something out while pointing to a single index, but no, I'd prefer if I could have each collection pointing to a different index.

smomin commented 3 years ago

If you want each collection to point to a separate Algolia index, this is possible. Install the extension on each collection and in the configuration set the Algolia index for that collection.

kevin-induro commented 3 years ago

I never realized you could install multiple instances of an extension. Thanks!