Like query not working in string contains &(ampersand)


(Bony Thomas) #1

Hi friends,
I have a query which is not working. I think the searched value containing & (ampersand) symbol. I am talking about the following query.

    GET "path"_search
    {

      "from": 0,
      "size": 10000,
      "query": {
        "query_string": {
          "query": "(Department_3037.Department_3037_analyzed:*P&C*)"
        }    
      }
    }

Why this query is not working and how to overcome this issue or i need like query of string containing & like (p&c) ,l&t etc... Please help me if anyone knows.
Thank you.


(Bony Thomas) #2

Please help me............................


(system) #3