Skip to content

Instantly share code, notes, and snippets.

@byronvoorbach
Last active August 29, 2015 13:56
Show Gist options
  • Save byronvoorbach/8860616 to your computer and use it in GitHub Desktop.
Save byronvoorbach/8860616 to your computer and use it in GitHub Desktop.
ElasticSearch - basic index setup
POST test
{
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0
},
"mappings": {
"text": {
"properties": {
"message": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
POST test/text/
{
"message": "The quick brown fox"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment