ElasticSearch PHP api ->search does not work

Thanks Amar.

I am also getting the same squid error page when I use a curl -xget search on terminal. There is some problem processing the request.

curl -XGET http://myelasticsearchsite.com:80/bt_orders/_search -d '
{
"aggs" : {
"max_modified" : {
"max" : {"field" : "order.modified" } }

}'

give the following squid error page:

Invalid Request error was encountered while trying to process the request: