December 2017
Intermediate to advanced
434 pages
10h 29m
English
By default, the response of all the requests is not formatted. It returns an unformatted JSON string in a single line:
curl -XGET http://localhost:9200/catalog/product/1
The response is not formatted:
{"_index":"catalog","_type":"product","_id":"1","_version":3,"found":true,"_source":{ "sku": "SP000001", "title": "Elasticsearch for Hadoop", "description": "Elasticsearch for Hadoop", "author": "Vishal Shukla", "ISBN": "1785288997", "price": 26.99}}
Passing pretty=true formats the response:
curl -XGET http://localhost:9200/catalog/product/1?pretty=true{ "_index" : "catalog", "_type" : "product", "_id" : "1", "_version" : 3, "found" : true, "_source" : { "sku" : "SP000001", "title" : "Elasticsearch for Hadoop",Read now
Unlock full access