Coder Social home page Coder Social logo

Comments (2)

christeredvartsen avatar christeredvartsen commented on July 19, 2024

@fangel Do you know if this is still an issue after upgrading clients / servers?

from imbo-metadata-search.

fangel avatar fangel commented on July 19, 2024

I'm unsure - nothing was changed with how we deal with exceptions coming back from the Elastic client.

It might happen if you post some metadata for one field of a fairly strict type that Elastic infers - looks like that was a date-field in the above case. If you then post more metadata for the same field, that doesn't fit this type - then you might get an exception. But I haven't tested this theory.

So if my theory is correct, then you need to do something like

  1. Post metadata to an image with {"date": "2017-04-11T07:55:00Z"}
  2. Post metadata for another image with {"date": false}

Now Elastic should have used the first piece of metadata to infer that the date-field was of type date, and then by the second piece, it will fail because it fails to parse false as a date (so if the intent was to signal a missing date - null should have been used).

I'll try and reproduce later. But I don't know what the best way to handle this is.

I think actually keeping an error in place when you try and push the second piece of metadata is appropriate. My reason is that we failed to actually index the Metadata, so none of the images metadata will be searchable, which is an error - and it was caused by the user-provided data.

from imbo-metadata-search.

Related Issues (14)

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.