Skip to content

Instantly share code, notes, and snippets.

@hillar
Created October 29, 2013 14:47
Show Gist options
  • Save hillar/7216021 to your computer and use it in GitHub Desktop.
Save hillar/7216021 to your computer and use it in GitHub Desktop.
What is the best way to disable the default analyzer....
{
"template": "prefix-*",
"mappings": {
"_default_": {
"_source": { "compress": true },
"dynamic_templates": [
{
"string_template" : {
"match" : "*",
"mapping": { "type": "string", "index": "not_analyzed" },
"match_mapping_type" : "string"
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment