Skip to content

Instantly share code, notes, and snippets.

@nickhoffman
Created November 17, 2011 17:23
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 nickhoffman/e018df778fcece76717e to your computer and use it in GitHub Desktop.
Save nickhoffman/e018df778fcece76717e to your computer and use it in GitHub Desktop.
ES Dynamic Template
{
"product": {
"dynamic_templates": [
{
"string_property": {
"match_mapping_type": "string",
"path_match" : "*",
"mapping" : {
"type" : "multi_field",
"fields": {
"{name}": {
"type" : "string",
"index" : "analyzed",
"index_analyzer" : "ascii_edge_ngram",
"search_analyzer" : "ascii_std",
"include_in_all" : true
},
"orig": {
"type" : "string",
"index" : "not_analyzed",
"include_in_all": false
}
}
}
}
}
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment