[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facet filter for parent id in a subcollection index #206

Open
davidoort opened this issue Apr 21, 2024 · 4 comments
Open

Facet filter for parent id in a subcollection index #206

davidoort opened this issue Apr 21, 2024 · 4 comments

Comments

@davidoort
Copy link

Hey! I'm wondering if there's a way to create a facet filter for the parent id of documents in a subcollection.

So if the Algolia Index is synced from a firestore subcollection like parent/{parentId}/child/{childId} it would be great to be able to see all documents from a certain parentId

Thanks!

David

@smomin
Copy link
Collaborator
smomin commented Apr 26, 2024

Sure, let me think about it.

@BossBele
Copy link

+1 for this as it would make more sense to sync subcollections

@smomin
Copy link
Collaborator
smomin commented Jun 17, 2024

Would you want the parent Id or the parent name?

@BossBele
Copy link

@smomin
The parentId in parent/{parentId}/child (sample) collection path. Example, when building a multi-tenant to-do app with tasks stored in tasks/{companyID}/docs, I want to be able to get all tasks of company A, say Algolia with companyID algolia-22324. These tasks would be stored in the tasks/algolia-22324/docs collection. I hope this makes sense.

To answer your question, we want the parentId.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants