I have index where data field is keyword type. I store string like this one:
[a-zA-Z0-9.]+\@[a-zA-Z0-9]+\.[a-zA-Z]+
but when I return it in Python from Elastic I get string like this one (because it is stored escaped in Elastic):
\\[a\\-zA\\-Z0\\-9\\.\\]\\+\\\\\\@\\[a\\-zA\\-Z0\\-9\\]\\+\\\\\\.\\[a\\-zA\\-Z\\]\\+
How I can return it back to original form in Python?
I tried to store it as binary type field and use encode/decode but basically I get same escaped string as well.