public
Created

Setting snowball as default analyzer

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
curl -XPUT http://localhost:9200/twitter -d '{
"settings" : {
"index" : {
"number_of_shards" : 1,
"number_of_replicas" : 1,
"analysis" : {
"analyzer": {
"default" : {
"type" : "snowball"
}
}
}
}
},
"mappings" : {
"tweet" : {
"_source" : { "enabled" : false },
"properties" : {
"message": { "type": "string"}
}
}
}
}' && echo

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.