Skip to content

Instantly share code, notes, and snippets.

@mkommar
Created November 22, 2013 17:45
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/7603976 to your computer and use it in GitHub Desktop.
Save mkommar/7603976 to your computer and use it in GitHub Desktop.
The corrected mapping so suggest includes numbers (standard analyzer)
curl -X PUT localhost:9200/numbers/zipcode/_mapping -d '{
"zipcode" : {
"properties" : {
"zipcode" : { "type" : "string" },
"suggest" : { "type" : "completion",
"index_analyzer" : "standard",
"search_analyzer" : "standard",
"payloads" : true
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment