Coder Social home page Coder Social logo

Comments (3)

acupofjose avatar acupofjose commented on August 15, 2024 1

Yep! That would do it.

There are some tutorials out there on how to update/change mappings in Elasticsearch.

If your app is still in heavy development, my approach would be to blow out the existing index, insert a fully defined document, and reinsert everything into elasticsearch. But that's just me.

Here's a blog entry on changing the mapping:
https://www.elastic.co/blog/changing-mapping-with-zero-downtime

As this isn't a problem with the library in particular, I'll close this issue. If you end up having other problems with it, please let me know!

from elasticstore.

acupofjose avatar acupofjose commented on August 15, 2024

@alaindixon, thanks for using the library! Is your firestore document VDPUYRBpKg3sJO4nwMgd conforming to the same types as the other documents in your collection?

Elasticsearch defines the mapping of an index based off the document it first receives (or the mapping you specify in the configuration). If it receives a document that does not conform to the existing type mapping, it will reject it. (i.e. trying to insert an Object where a float should be)

You can see a similar thread here: elastic/elasticsearch-py#579

from elasticstore.

alaindixon avatar alaindixon commented on August 15, 2024

Thank you for your very quick response, awesome.
Basically I could order several products, I've got a field "menuDetail", I think it was null in the first place.
What would you recommand?

Capture d’écran 2020-07-08 à 17 51 37

Capture d’écran 2020-07-08 à 17 46 48

Capture d’écran 2020-07-08 à 17 46 32

from elasticstore.

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.