ElasticSearch supports mapping char filter, where in one can specify a key and its corresponding value. I want to use regular expression in key.
The regular expression I am trying is basically to catch all uppercase symbols ending with I
and convert them to strings ending with l. So this looks something like
ABCI => ABCl
String before I
is not fixed, hence I am writing regular expression.
I have figured out the left hand part of the expression as [A-Z]+I
but I am not able to decide what should be written on the right hand side so that I can catch string ABC
as well.
My question is can we use regular expression in mapping char filter. If yes then how can I write the concerned regular expression(especially the right hand side part).