Hi, i’m trying to create an index where the data is indexed WITH character substitution and without. For example: a report ID can be “2016-1213”. Searching voor (match) “2016-1213” gives a whole lot of unusable results.
Now i can create a filter like
“my_mappings_char_filter”: { “type”: “mapping”, “mappings”:
[ “- => _”
, “/ => _”
] }
this works “kind of” perfect.
Searching for 2016-1213 works as expected, but now the separated tokens are missing thus searching for 2016 does not return the document containing 2016-1213.
Is there a way to also keep the version with the separated tokens…