Skip to content

Instantly share code, notes, and snippets.

@mkommar
Created November 21, 2013 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkommar/7586804 to your computer and use it in GitHub Desktop.
Save mkommar/7586804 to your computer and use it in GitHub Desktop.
Creation of a mapping for zipcodes
curl -X PUT localhost:9200/numbers
curl -X PUT localhost:9200/numbers/zipcode/_mapping -d '{
"zipcode" : {
"properties" : {
"zipcode" : { "type" : "string" },
"suggest" : { "type" : "completion",
"index_analyzer" : "simple",
"search_analyzer" : "simple",
"payloads" : true
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment