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

How to change specific _mapping field type #13

Open
onhernandes opened this issue Jan 30, 2019 · 2 comments
Open

How to change specific _mapping field type #13

onhernandes opened this issue Jan 30, 2019 · 2 comments

Comments

@onhernandes
Copy link

How can I change specific _mapping field type sent to ElasticSearch?

I've a collection of objects with a field called metadata, which is populated by users, so I don't know all the keys in that object. Monstache automatically updates the index mapping for me, but I want to set everything explicitly to string instead date because some of the data are malformed.

I'm thinking about mapping the doc with a custom script and then patching the fields, but I wanted to know if I can change mapping field types

@rwynn
Copy link
Owner

rwynn commented Jan 30, 2019

Monstache just sends data to Elasticsearch. To control how that data is indexed you would need to configure on the Elasticsearch side.

Take a look at this

and in general

@onhernandes
Copy link
Author

Oh, thank you!

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