Skip to content

Instantly share code, notes, and snippets.

@hackjoy
Last active February 7, 2019 11:13
Show Gist options
  • Select an option

  • Save hackjoy/7358588 to your computer and use it in GitHub Desktop.

Select an option

Save hackjoy/7358588 to your computer and use it in GitHub Desktop.
{
"badger": {
"properties": {
"name": {"type": "string"},
"role": {"type": "string"},
"bio": {"type": "string"}
}
}
}
@molo76
Copy link
Copy Markdown

molo76 commented Feb 7, 2019

Elasticsearch has dropped the 'string' type and is now using 'text'. Change that in the json above and it'll work with latest version of Elasticsearch.

Discovered when running through https://blog.red-badger.com/2013/11/08/getting-started-with-elasticsearch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment