What about dismax instead of edismax? It might do the righter thing here without escaping.
> On May 6, 2017, at 12:57, Shawn Heisey <apa...@elyograg.org> wrote: > >> On 5/6/2017 7:09 AM, Aman Deep Singh wrote: >> After escaping the square bracket the query is working fine, Is their >> any way in the parser to avoid the automatic conversion if not proper >> query will be passed like in my case even though I haven't passed >> proper range query (with keyword TO). > > If you use characters special to the query parser but don't want them > acted on by the query parser, then they need to be escaped. That's just > how things work, and it's not going to change. > > Thanks, > Shawn >