Giter Site home page Giter Site logo

Comments (8)

smomin avatar smomin commented on May 31, 2024

I am not sure I understand your use case. If you can provide more details, I can try to look into it. thanks

from firestore-algolia-search.

zphoenixz avatar zphoenixz commented on May 31, 2024

Sorry, what I meant is that if it's possible to use listeners to collections with interpolated document keys something like "parent_collection/$document_id/target_collection"

from firestore-algolia-search.

smomin avatar smomin commented on May 31, 2024

It is supported. Example syntax is parent_collection/{parentId}/target_collection. One note, there is not depublication process on subcollections. So if there is a record with the same data in multiple sub collection but with different ids, you will have multiple corresponding records in Algolia.

from firestore-algolia-search.

smomin avatar smomin commented on May 31, 2024

Also, if you plan to use a new index for the subcollection, make sure the API key you are using has the proper permission.

from firestore-algolia-search.

smomin avatar smomin commented on May 31, 2024

Reopen the issue if you have further questions.

from firestore-algolia-search.

BenWueb avatar BenWueb commented on May 31, 2024

Could you provide the proper syntax for adding a subcollection. I have tried the below with no success.

Recipes/{parentId}/recipes
Recipes/{documentId}/recipes

from firestore-algolia-search.

smomin avatar smomin commented on May 31, 2024

Can you provide more detail on this issue? Are the parent and child collection both called recipes?

from firestore-algolia-search.

guplem avatar guplem commented on May 31, 2024

I have the following structure:

  • ParentCollection
    • Document1
      • SubCollection
    • Document2
      • SubCollection
    • Document3
      • SubCollection

It should work by setting up the path like ParentCollection/{parentId}/SubCollection.

This appears in the readme

I was confused because after the initial sync I saw nothing in the Agolia records. Creating/Updating documents did make them appear as records in Agolia, so I started looking and found this issue describing this same behaviour.

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.