Giter Site home page Giter Site logo

Comments (3)

smomin avatar smomin commented on May 31, 2024 2

Hey @Mario8419, i have create a PR for a new feature to allow post processing. In this approach, you can add the id property to the payload before it gets push Algolia.

from firestore-algolia-search.

smomin avatar smomin commented on May 31, 2024 1

hey mario, from what I understand from your description, you want the Algolia record to have the id attribute instead of the objectID. Algolia objectID is required so another attribute can not take its place. If you want the id in the Algolia record, you can request a feature where the id attribute is also added to the Algolia record. This way the objectID and id will be in the Algolia record.

from firestore-algolia-search.

Mario8419 avatar Mario8419 commented on May 31, 2024

hey smomin, thx for your quick answer. This is what I was searching for, and of course it's a feature not a bug, so sry for posting it here, but couldn't find anything dealing with the id and objectID in algolia forum. that would be what would help in my case, but I don't know how it looks with other users of this plugin!

For now I solved my use case with partialUpdateObject for my search results. but don't know whether it's such a good way...but it's working for now...

...

for (var i = 0; result.hits.length; i++) {
      await searchIndex.partialUpdateObject({
        id: result.hits[i].objectID,
        objectID: result.hits[i].objectID
      })
    }

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.