Skip to content

Instantly share code, notes, and snippets.

@gabriel-tincu
Created October 13, 2020 12:54
Show Gist options
  • Save gabriel-tincu/1977c88b3b3eaa1ebb66c1743111c13e to your computer and use it in GitHub Desktop.
Save gabriel-tincu/1977c88b3b3eaa1ebb66c1743111c13e to your computer and use it in GitHub Desktop.
{
"ok_migration": {
"old": {
"mappings": {
"foo_type": {
"properties": {
"bar": {"type": "text"}
}
}
}
},
"new": {
"mappings": {
"_doc": {
"properties": {
"bar": {"type": "text"}
}
}
}
}
},
"needs_merge": {
"old": {
"mappings": {
"foo_type": {
"properties": {
"bar": {"type": "text"}
}
},
"bar_type": {
"properties": {
"baz": {"type": "text"}
}
}
}
},
"new": {
"mappings": {
"_doc": {
"properties": {
"bar": {"type": "text"},
"baz": {"type": "text"}
}
}
}
}
},
"merge_overlaps": {
"old": {
"mappings": {
"foo_type": {
"properties": {
"bar": {"type": "text"},
"quux": {"type": "long"}
}
},
"bar_type": {
"properties": {
"baz": {"type": "text"},
"quux": {"type": "text"}
}
}
}
},
"new": {
"mappings": {
"_doc": {
"properties": {
"bar": {"type": "text"},
"baz": {"type": "text"},
"quux": {"type": "text"}
}
}
}
}
},
"merge_overlaps_incompatible": {
"old": {
"mappings": {
"foo_type": {
"properties": {
"bar": {"type": "text"},
"quux": {"type": "long"}
}
},
"bar_type": {
"properties": {
"baz": {"type": "text"},
"quux": {"type": "boolean"}
}
}
}
},
"new": {
"mappings": {
"_doc": {
"properties": {
"bar": {"type": "text"},
"baz": {"type": "text"},
"quux": {"type": "text"}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment