Skip to content

Instantly share code, notes, and snippets.

@rajesh07
Last active December 13, 2015 22:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajesh07/4985901 to your computer and use it in GitHub Desktop.
Save rajesh07/4985901 to your computer and use it in GitHub Desktop.
Analyzer Mapping
"index" : {
"analysis" : {
"analyzer" : {
"manualindexanalyzer" : {
"type":"custom",
"tokenizer" : "whitespace",
"filter" : ["lowercase","asciifolding","length","mystopword","myworddelimiter","myshingle","mystemmer","myelision"],
"char_filter" :["html_strip"]
},
"manualsearchanalyzer" : {
"type":"custom",
"tokenizer" : "whitespace",
"filter" : ["lowercase","asciifolding","length","mystopword","myworddelimiter","myshingle","mystemmer","mysynonym","my_snowball","myelision"],
"char_filter" :["html_strip"]
}
},
"filter" : {
"my_snowball" : {
"type" : "snowball",
"language" : "English"
},
"mystopword": {
"type" : "stop",
"stopwords_path" :"resources/stopwordeng.txt" ,
"ignore_case":true
},
"mysynonym": {
"type" : "synonym",
"synonyms_path" :"resources/synonym.txt" ,
"ignore_case":true
},
"myworddelimiter":{
"type" : "word_delimiter",
"generate_word_parts" :true ,
"generate_number_parts" :true ,
"catenate_words" :true ,
"catenate_numbers" :false ,
"catenate_all" :true ,
"split_on_case_change" :true ,
"preserve_original" :true ,
"split_on_numerics":true ,
"stem_english_possessive":true,
"protected_words_path " : "resources/protected_words.txt",
"type_table_path " : "resources/typetable.txt"
},
"myshingle":{
"type" : "shingle",
"max_shingle_size" :2,
"output_unigrams":true
},
"mystemmer":{
"type" : "stemmer",
"name" :"english"
},
"myelision":{
"type" : "elision",
"articles" :["l", "m", "t", "qu", "n", "s", "j"]
},
"myphonetic": {
"type" : "phonetic",
"encoder" :"soundex",
"replace":false
}
}
}
}
}
bit-depth,bit depth,bitdepth
technologies,technology,tech
Association,Assc
Department,Dept,Dpt
Bank,Banc,Banking,Banco
services,service
Goverment,Govt
oracle company,sap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment