Skip to content

Instantly share code, notes, and snippets.

@loren
Created October 28, 2014 17:30
Show Gist options
  • Save loren/8410d6fc947ee6091eb1 to your computer and use it in GitHub Desktop.
Save loren/8410d6fc947ee6091eb1 to your computer and use it in GitHub Desktop.
Initial Elasticsearch settings
{
"settings": {
"index": {
"analysis": {
"char_filter": {
"ignore_chars": {
"type": "mapping",
"mappings": [
"'=>",
"\u2019=>",
"`=>"
]
},
"strip_whitespace": {
"type": "mapping",
"mappings": [
"\\u0020=>"
]
}
},
"analyzer": {
"case_insensitive_keyword_analyzer": {
"char_filter": [
"ignore_chars"
],
"filter": [
"standard",
"asciifolding",
"lowercase"
],
"tokenizer": "keyword"
},
"en_analyzer": {
"type": "custom",
"char_filter": [
"ignore_chars"
],
"filter": [
"standard",
"asciifolding",
"lowercase",
"en_stop_filter",
"en_stem_filter",
"en_synonym"
],
"tokenizer": "standard"
},
"tag_analyzer": {
"type": "custom",
"char_filter": [
"strip_whitespace"
],
"filter": [
"standard",
"asciifolding",
"lowercase"
],
"tokenizer": "standard"
}
},
"filter": {
"en_synonym": {
"type": "synonym",
"synonyms": [
"hike,hiking"
]
},
"en_stop_filter": {
"type": "stop",
"stopwords": [
"a",
"an",
"was",
"with"
]
},
"en_stem_filter": {
"type": "stemmer",
"name": "minimal_english"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment