Skip to content

Instantly share code, notes, and snippets.

@imotov
Created March 15, 2012 11:18
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 imotov/2043721 to your computer and use it in GitHub Desktop.
Save imotov/2043721 to your computer and use it in GitHub Desktop.
Setting analyzer for the _all field
curl -XPUT http://localhost:9200/twitter -d '{
"settings" : {
"index" : {
"number_of_shards" : 1,
"number_of_replicas" : 1
}
},
"mappings" : {
"tweet" : {
"_source" : { "enabled" : false },
"_all": {"analyzer" : "snowball"},
"properties" : {
"message": { "type": "string"}
}
}
}
}' && echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment