Comments (2)
@fangel Do you know if this is still an issue after upgrading clients / servers?
from imbo-metadata-search.
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
- Post metadata to an image with
{"date": "2017-04-11T07:55:00Z"}
- 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)
- Lowercasing in the ES DSL transformation HOT 4
- What types of result modifiers do we need to support in the search?
- Remove lowercasing from Imbo DSL -> AST transformation HOT 1
- Add support for global search
- Describe the DSL on the readme HOT 1
- Query DSL representation HOT 4
- Use one elasticsearch index for storing metadata
- Change endpoints HOT 1
- Model is missing a method
- Documents inserted into ElasticSearch has a query-property HOT 7
- Incompatible with ElasticSearch 5.2 HOT 6
- Sorting/ordering of images is not consistent HOT 1
- Tokenization of metadata HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imbo-metadata-search.