fixed the problem with regex query in elastic search