Skip to content

Commit

Permalink
#13 Changing the template with my delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
fluvip-jagustin committed Mar 11, 2016
1 parent b9dc57c commit 059d87e
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions lib/template/template_mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
},
"smash_otherchars": {
"type": "pattern_replace",
"pattern": "[^a-z0-9ñ@#_ ]",
"pattern": "[^a-z0-9ñ@#_\\- ]",
"replacement": " "
},
"smash_singleletterdash": {
Expand All @@ -132,8 +132,8 @@
"my_word_delimiter" : {
"type" : "word_delimiter",
"preserve_original": "true",
"generate_number_parts": "false",
"generate_word_parts": "false"
"generate_number_parts": "true",
"generate_word_parts": "true"
},
"smash_spaces": {
"type": "pattern_replace",
Expand All @@ -160,13 +160,7 @@
"ley": {
"type": "custom",
"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"],
"filter": ["lowercase", "trim","my_word_delimiter"],
"char_filter": ["html_strip", "strip_acentos"]
}
}
Expand Down

0 comments on commit 059d87e

Please sign in to comment.