Skip to content

Commit

Permalink
#11 Adding analyzer to support words like "XXX-XXX-TT"
Browse files Browse the repository at this point in the history
  • Loading branch information
fluvip-jagustin committed Mar 10, 2016
1 parent 973a125 commit b9dc57c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lib/template/template_mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@
"pattern": "[^a-z0-9ñ_ ]",
"replacement": " "
},
"my_word_delimiter" : {
"type" : "word_delimiter",
"preserve_original": "true",
"generate_number_parts": "false",
"generate_word_parts": "false"
},
"smash_spaces": {
"type": "pattern_replace",
"pattern": "[ ]+",
Expand Down Expand Up @@ -156,6 +162,12 @@
"tokenizer": "whitespace",
"filter": ["lowercase", "smash_singleletterdash", "urltoparts", "smash_otherchars", "smash_cosasraras4", "smash_cosasraras5", "smash_cosasraras6", "smash_cosasraras7", "smash_spaces", "sinonimos", "trim", "spanish_stop", "stop", "mylength"],
"char_filter": ["html_strip", "strip_acentos"]
},
"exact_match_law": {
"type": "custom",
"tokenizer": "whitespace",
"filter": ["lowercase","my_word_delimiter","smash_otherchars", "smash_cosasraras4", "smash_cosasraras5", "smash_cosasraras6", "smash_cosasraras7", "smash_spaces", "sinonimos", "trim", "spanish_stop", "stop", "mylength"],
"char_filter": ["html_strip", "strip_acentos"]
}
}
}
Expand Down Expand Up @@ -235,4 +247,4 @@
}
}
}
}
}

0 comments on commit b9dc57c

Please sign in to comment.