When I use $client->get($params) it works. But when try to use the search function, i get err_invalid_req. Can't seem to find out why, have also used extended hosts config etc...
I use to face same issue for search using "match", this can be fix if you are defining following when creating index , Please try
"id" : { "type" : "string", "index" : "not_analyzed"},
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.