Skip to content

Instantly share code, notes, and snippets.

@KevinMarquette
Created May 29, 2019 16:33
Show Gist options
  • Save KevinMarquette/f3349f37368cc88335e4691b0bcdf236 to your computer and use it in GitHub Desktop.
Save KevinMarquette/f3349f37368cc88335e4691b0bcdf236 to your computer and use it in GitHub Desktop.
lowercase elastic keywords
{
"template": "*",
"order": 0,
"mappings": {
"doc": {
"dynamic_templates": [
{
"strings_as_keywords": {
"match_mapping_type": "string",
"mapping": {
"type": "keyword",
"norms": false,
"normalizer": "lowercase_normalizer"
}
}
}
]
}
},
"settings": {
"analysis": {
"normalizer": {
"lowercase_normalizer": {
"type": "custom",
"filter": ["lowercase"]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment