Name | Type | Description |
---|---|---|
total | Integer | |
max_score | Float | |
hits | Array | |
hits[]._index | String | |
hits[]._type | String | |
hits[]._id | String | |
hits[]._score | Float | |
hits[].fields.item_id | String | |
hits[].fields.item_name | String | |
hits[].fields.brand_name | String |
Filter all but restaurants
2015-11-03 23:25:33 UTC
POST /v1_1/search
content-length: 115 content-type: application/json accept: */* user-agent: curl/7.37.1
{"appId":"27bea288","appKey":"20e7dbd58d07239743c441a2488f3cbb","query":"Coffee","filters":{"not":{"item_type":2}}}
transfer-encoding: chunked connection: close content-length: 2182 x-powered-by: Express, Phusion Passenger status: 200 OK set-cookie: ["session=Sq3SvTEX1q5NCFhj6Om11w.t728KPoTyOm_02sMLS6cR99djmlJASua17vM3Rn-pnc.1446593123625.86400000._-s5VRg1sbJzUSB7WD172fZfGRJknqWAy-yZSqOm-YA; path=/; expires=Thu, 03 Dec 2015 23:25:23 GMT"] server: nginx/1.6.2 + Phusion Passenger etag: "1061362461" date: Tue, 03 Nov 2015 23:25:23 GMT content-type: application/json; charset=utf-8 access-control-allow-origin: * access-control-allow-methods: GET, PUT, POST, DELETE, OPTIONS access-control-allow-headers: Content-Type, X-Requested-With, X-APP-ID, X-APP-KEY
Shortened for readability
{ "total": 3519, "max_score": 12.230706, "hits": [ { "_index": "f762ef22-e660-434f-9071-a10ea6691c27", "_type": "item", "_id": "513fceb675b8dbbc21001e28", "_score": 12.230706, "fields": { "item_id": "513fceb675b8dbbc21001e28", "item_name": "Coffee - 1 packet", "brand_name": "USDA" } }, { "_index": "f762ef22-e660-434f-9071-a10ea6691c27", "_type": "item", "_id": "513fceb675b8dbbc21001e29", "_score": 12.207488, "fields": { "item_id": "513fceb675b8dbbc21001e29", "item_name": "Coffee - 1 tsp", "brand_name": "USDA" } } ] }