The query for getting data using elastic search and highlighting is this
GET /autocomplete_test/doc/_search
{
     "size": 10,
     "query": {
        "match": {
           "_all": {
              "query": "lor",
              "operator": "and"
           }
        }
     },
     "highlight": { 
       "fields": { 
       "_all":{} 
      } 
    }
}
This query returns the data that I want exactly correct but when I use this url
  GET /autocomplete_test/doc/_search/?q=lor&highlight=(fields:_all)&pretty=True
it does not return the highlight in the response so what do I need to write in the url to get the correct response as I am getting from the query?