Skip to content

Instantly share code, notes, and snippets.

@talss89
Created February 5, 2014 21:29
Show Gist options
  • Save talss89/8833551 to your computer and use it in GitHub Desktop.
Save talss89/8833551 to your computer and use it in GitHub Desktop.
{
"index": {
"analysis": {
"analyzer": {
"custom_analyzer": {
"type": "custom",
"tokenizer": "nGram",
"filter": ["stopwords", "asciifolding", "lowercase", "snowball", "elision", "worddelimiter"]
},
"custom_search_analyzer": {
"type": "custom",
"tokenizer": "standard",
"filter": ["stopwords", "asciifolding", "lowercase", "snowball", "elision", "worddelimiter"]
}
},
"tokenizer": {
"nGram": {
"type": "nGram",
"min_gram": 2,
"max_gram": 20
}
},
"filter": {
"snowball": {
"type": "snowball",
"language": "French"
},
"elision": {
"type": "elision",
"articles": ["l", "m", "t", "qu", "n", "s", "j", "d"]
},
"stopwords": {
"type": "stop",
"stopwords": ["_english_"],
"ignore_case": true
},
"worddelimiter": {
"type": "word_delimiter"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment