Spider REST Commands : Object Query Commands : Object Query via Entity

Object Query via Entity
An object query can be performed by passing all parameters in an input entity. Because some clients do not support HTTP GET-with-entity, the PUT method can be used instead, even though no modifications are made. Both these examples are equivalent:
GET /{application}/{table}/_query
PUT /{application}/{table}/_query
The entity passed in the command must be a JSON or XML document whose root element is search. The query parameters are given as child elements. URI query parameters map to the following element names:
 
Here is an example search document in XML:
<search>
<query>LastName=Powell</query>
<fields>Name,Manager(Name),DirectReports(Name)</fields>
<size>2</size>
</search>
The same example in JSON:
{"search": {
"query": "LastName=Powell",
"fields": "Name,Manager(Name),DirectReports(Name)",
"size": "2"
}}