Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Setting analyzer for the _all field

View gist:2043721
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
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
Something went wrong with that request. Please try again.