Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Elastic mapping type of serde_json::Value #411

Open
lfdominguez opened this issue Jan 29, 2020 · 2 comments
Open

Change Elastic mapping type of serde_json::Value #411

lfdominguez opened this issue Jan 29, 2020 · 2 comments

Comments

@lfdominguez
Copy link

The default mapping type for serde_json::Value is "nested" and that not allow make normal queries on ElasticSearch for dynamics data. How i can change the type to "object". Already i changed the code on file "src/elastic/src/types/document/mapping.rs" on trait ObjectMapping from NESTED_DATATYPE to OBJECT_DATATYPE and now my elastic queries are responding with results.

@mwilliammyers
Copy link
Collaborator

You can also do it though Elasticsearch directly, I use dynamic mappings personally...

@lfdominguez
Copy link
Author

You can also do it though Elasticsearch directly, I use dynamic mappings personally...

Yes of course, i can use curl directly to put data on ElasticSearch too. The main question is why use "nested" for object types and not "object"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants