Skip to content

Instantly share code, notes, and snippets.

@torkelo
Created September 22, 2014 14:36
Show Gist options
  • Save torkelo/9a57ece203d56f607e9b to your computer and use it in GitHub Desktop.
Save torkelo/9a57ece203d56f607e9b to your computer and use it in GitHub Desktop.
Schema change issue
// Old schema
pulldowns: [
{
type: 'filtering',
enable: true
},
{
type: 'annotations',
enable: true,
annotations: [{name: 'old'}]
}
],
// new schema
annotations: {
list: [ {name: 'old'} ]
}
// if you have something like this in your ES you will get the error
pulldowns: [
{
type: 'annotations',
enable: true,
}
],
See the missing annotations: [] array. When the schema upgrades to the new schema the annoatations.list will be undefined.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment