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

mapper_parsing_exception in elastic search #9

Open
ghost opened this issue Apr 13, 2019 · 1 comment
Open

mapper_parsing_exception in elastic search #9

ghost opened this issue Apr 13, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 13, 2019

"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: [house_locations : {properties={image={type=text}, post_id={type=text}, city={type=text}, user_id={type=text}, description={type=text}, state_province={type=text}, house_type={type=text}, title={type=text}, contact_email={type=text}}}]"

@AhmedSedik
Copy link

you will notice there are some changes in elasticsearch.
so as of ElasticSearch 7 u can't map type name which in our case 'post' so instead you need first to create an empty index 'posts' with a PUT Request and second step using POST Request with url http://your%20elasticsearch%20url//elasticsearch/posts/post and remove the "post" type field from the nodes down in body so it should be on starting with "mapping" and then should work fine i guess.

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

1 participant