Skip to content

Instantly share code, notes, and snippets.

@Vineeth-Mohan
Created May 7, 2013 16:52
Show Gist options
  • Save Vineeth-Mohan/5534183 to your computer and use it in GitHub Desktop.
Save Vineeth-Mohan/5534183 to your computer and use it in GitHub Desktop.
curl -X PUT "http://localhost:9200/events" -d '{
"index" : {
"number_of_shards" : 4,
"number_of_replicas" : 1 ,
"analysis":{
"analyzer":{
"content" : {
"type" : "custom",
"tokenizer" : "standard",
"filter" : ["lowercase" , "stop" , "kstem"],
"char_filter" : ["html_strip"]
},
"flat" : {
"type" : "custom",
"tokenizer" : "keyword"
}
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment