Apr 26, 2018
0
Level 1
Sending with curl library requests to get an elasticsearch index settings
I'm trying to get an index from my elasticsearch node using curl but I don't get the expected result This is my code : $response = Curl::to('http://elastic:[email protected]:9200/150d540c-dba3-421c-9047-88dd7652268e/_search/?size=1000&pretty=1') ->returnResponseObject() ->get(); print_r(json_decode(json_encode($response),true));
Please or to participate in this conversation.