Special characters that come from variables and used in elasticsearch query are having escape character

Hi,

I’m getting this text from variable : var_a=“ut_coverage:86”
setting it in the elastic query (lucene query), $var_a, end up as: ms_sonar_ut_coverage\\:86
double backslash before :

I’m search for hours and didn’t find any solution
Thanks a lot
Doron

2 Likes

solved by using ${a:raw}

3 Likes

Saved hours of distress after the upgrade from 7.3 to 7.4.

thankyou, worked like a charm for me