I wrote a query through 'postman' which looks like this
POST: http://someurl
{
"elasticQuery": //Elastic Query is a user defined field.
{
"_source": [ "field 1", "field 2", "field 3" ],
"query":
{
"match_all":{}
}
},
"index": "indexName",
"scroll": "True"
}
This returns lots of JSON formatted documents from the site with 3 given fields. I am wondering how I would format this query using PHP to do a curl call and recieve the same documents.
I am not sure if this is even possible but your help will be greatly appreciated. Thanks.