Giter Site home page Giter Site logo

Comments (5)

smomin avatar smomin commented on May 31, 2024 1

You can do this by setting the sub-collection path to : users/{parentId}/cars. You will need to have two Algolia extensions installed. One to listen on the users collection and the other to listen for the users/{parentId}/cars subcollection.

reference #36

from firestore-algolia-search.

dvarnes avatar dvarnes commented on May 31, 2024

Do you know that the existing function already works for sub-collections?

Just specify the full sub-collection path: rootCollection/{someDocId}/subCollection/{someDocId}

from firestore-algolia-search.

deimantasa avatar deimantasa commented on May 31, 2024

This will index only specific subCollection. My goal is to index all subCollections with the same name (collectionGroup).

Example:
collection - users
subCollection - cars

I want to listen for changes that happen in any subcollection of cars (thus collectionGroup) instead of single one as per your sample.

from firestore-algolia-search.

deimantasa avatar deimantasa commented on May 31, 2024

Wow - that's terrific. Just ran a test and indeed - it works!

Would be nice to add some description about it, as it was not clear in the beginning that sub-collections are taken into account as well.

Thank you for prompt help!

from firestore-algolia-search.

vivekraj avatar vivekraj commented on May 31, 2024

@smomin

You will need to have two Algolia extensions installed. One to listen on the users collection and the other to listen for the users/{parentId}/cars subcollection.

Both points to the same algolia index or should be pointing to separate indexes?

from firestore-algolia-search.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.