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

Example not working for ElasticSearch version 7.4 #51

Closed
abhishek-butola opened this issue Aug 20, 2021 · 1 comment
Closed

Example not working for ElasticSearch version 7.4 #51

abhishek-butola opened this issue Aug 20, 2021 · 1 comment

Comments

@abhishek-butola
Copy link

Only difference i could find is in mapping config.

version 7.1

{
	"buildings": {
		"aliases": {},
		"mappings": {
			"properties": {
				"geometry": {
					"type": "geo_shape"
				},
				"height": {
					"type": "long"
				},
				"name": {
					"type": "text"
				},
				"stories": {
					"type": "integer"
				}
			}
		},
		"settings": {
			"index": {
				"routing": {
					"allocation": {
						"include": {
							"_tier_preference": "data_content"
						}
					}
				},
				"number_of_shards": "1",
				"provided_name": "buildings",
				"creation_date": "1629479814250",
				"number_of_replicas": "1",
				"uuid": "Nq2jkkSFQbOfzRWZtfHu-Q",
				"version": {
					"created": "7140099"
				}
			}
		}
	}
}

Version 6.5.1 has extra _doc which is deprecated on new 7.x

{
	"buildings": {
		"aliases": {},
		"mappings": {
			"_doc": {
				"properties": {
					"geometry": {
						"type": "geo_shape"
					},
					"height": {
						"type": "long"
					},
					"name": {
						"type": "text"
					},
					"stories": {
						"type": "integer"
					}
				}
			}
		},
		"settings": {
			"index": {
				"creation_date": "1629478310030",
				"number_of_shards": "5",
				"number_of_replicas": "1",
				"uuid": "ycsiK_gcRDGt8zZfEjw2mg",
				"version": {
					"created": "6050199"
				},
				"provided_name": "buildings"
			}
		}
	}
}

Is there any workaround for this?

@jerluc
Copy link
Member

jerluc commented Sep 7, 2021

@abhishek-butola was the solution to just remove the _doc nesting from schema.json? We'd be happy to merge a fix to this (and the README as well) if you found a way for this to work on ES 7.x

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