Skip to content

Instantly share code, notes, and snippets.

@hamsterbacke23
Created January 16, 2015 16:24
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 hamsterbacke23/dcb01f1edb677cd01887 to your computer and use it in GitHub Desktop.
Save hamsterbacke23/dcb01f1edb677cd01887 to your computer and use it in GitHub Desktop.
elasticsearch templates
{
"template" : "*_de",
"mappings" : {
"page": {
"dynamic": "strict",
"properties": {
"body": {
"type": "string",
"analyzer": "german"
},
"category": {
"type": "string"
},
"title": {
"type": "string"
}
}
}
},
"settings": {
"index": {
"analysis": {
"filter": {
"german_stop": {
"type": "stop",
"stopwords": "_german_"
},
"synonyms": {
"type": "synonym",
"synonyms": [
"angst,furcht",
"könig,monarch"
]
},
"german_stemmer": {
"type": "stemmer",
"language": "light_german"
},
"german_keywords": {
"type": "keyword_marker",
"keywords": [
"seitenbau",
"scheisse"
]
}
},
"analyzer": {
"german": {
"tokenizer": "standard",
"filter": [
"lowercase",
"german_stop",
"german_keywords",
"german_normalization",
"german_stemmer",
"synonyms"
],
"tokenizer": "standard"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment