Skip to content

Instantly share code, notes, and snippets.

@ppearcy
Created July 23, 2014 17:39
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 ppearcy/fc5202a1664dbc90cbc2 to your computer and use it in GitHub Desktop.
Save ppearcy/fc5202a1664dbc90cbc2 to your computer and use it in GitHub Desktop.
{
"template" : "activitystream_*",
"settings" : {
"number_of_shards" : 5,
"number_of_replicas" : 0,
"analysis" : {
"analyzer":{
"lowercase_keyword":{
"type":"custom",
"tokenizer":"keyword",
"filter" : ["lowercase"]
}
}
}
},
"mappings" : {
"a" : {
"_all" : {"enabled" : false},
"index_analyzer" : "lowercase_keyword",
"search_analyzer" : "lowercase_keyword",
"_source" : { "enabled" : false },
"_routing" : {
"required" : true,
"path" : "institution"
},
"dynamic_templates" : [
{
"all_fields" : {
"match" : "*",
"mapping" : {
"index" : "not_analyzed"
}
}
}
],
"properties" : {
"time" : {"type" : "date"}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment