How can i search part of my variable value from a field

I am new to grafana and elasticsearch, so please excuse me…

In the screen shoot i have TagNames as eng, ind, us etc… and tag value as /ind/eng/3rdfloor, /ind/eng/2ndfloor etc, Now my requirement is like if i select ‘ind’ i should get both /ind/eng/3rdfloor and /ind/enf/2ndfloor
is this possible.

In Lucene query if i pass variable.tag-name:*ind* i get the expected result, is there a dynamic way to do it… please help.

if you use it in the lucene query you can write

${TagName}*