Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tpoljak
Created August 31, 2011 14:35
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 tpoljak/1183687 to your computer and use it in GitHub Desktop.
Save tpoljak/1183687 to your computer and use it in GitHub Desktop.
stripping accents in auto-complete analysis
{
"index" : {
"analysis" : {
"filter" : {
"my_ngram" : {
"max_gram" : 20,
"min_gram" : 2,
"type" : "nGram"
},
"my_snow" : {
"type" : "stemmer",
"language" : "light_french"
}
},
"analyzer" : {
"lowercase_keyword" : {
"filter" : [
"standard",
"lowercase",
"asciifolding",
"my_snow"
],
"type" : "custom",
"tokenizer" : "keyword"
},
"lowercase_keyword_ngram" : {
"filter" : [
"standard",
"lowercase",
"asciifolding",
"my_ngram",
"my_snow"
],
"type" : "custom",
"tokenizer" : "keyword"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment