Skip to content

Instantly share code, notes, and snippets.

@ericnormand
Created February 19, 2015 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericnormand/45d04d2f115a79ad26b9 to your computer and use it in GitHub Desktop.
Save ericnormand/45d04d2f115a79ad26b9 to your computer and use it in GitHub Desktop.
Elasticsearch Help 2
{
"_index": "amazon-cache",
"_type": "listings",
"_id": "amazon--0143122010",
"_score": 1,
"_source": {
"description": "<p><b>A provocative history of violence—from the <i>New York Times</i> bestselling author of <i>The Stuff of Thought</i> and <i>The Blank Slate</i></b></p><div><p>Believe it or not, today we may be living in the most peaceful moment in our species' existence. In his gripping and controversial new work, <i>New York Times</i> bestselling author Steven Pinker shows that despite the ceaseless news about war, crime, and terrorism, violence has actually been in decline over long stretches of history. Exploding myths about humankind's inherent violence and the curse of modernity, this ambitious book continues Pinker's exploration of the essence of human nature, mixing psychology and history to provide a remarkable picture of an increasingly enlightened world.</p></div>",
"_id": "amazon--0143122010",
"name": "The Better Angels of Our Nature: Why Violence Has Declined",
"ean": "9780143122012",
"isbn": "0143122010",
"asin": "0143122010",
"categories": [
{
"path": [
{
"name": "Personality",
"id": "11194"
},
{
"name": "Psychology & Counseling",
"id": "11119"
},
{
"name": "Health, Fitness & Dieting",
"id": "10"
},
{
"name": "Books",
"id": "283155"
}
]
},
{
"path": [
{
"name": "Social Psychology & Interactions",
"id": "11223"
},
{
"name": "Psychology & Counseling",
"id": "11119"
},
{
"name": "Health, Fitness & Dieting",
"id": "10"
},
{
"name": "Books",
"id": "283155"
}
]
},
{
"path": [
{
"name": "History & Philosophy",
"id": "13871"
},
{
"name": "Science & Math",
"id": "75"
},
{
"name": "Books",
"id": "283155"
}
]
},
{
"path": [
{
"name": "Social Psychology & Interactions",
"id": "6512002011"
},
{
"name": "Psychology",
"id": "6511980011"
},
{
"name": "Medical Books",
"id": "173514"
},
{
"name": "Books",
"id": "283155"
}
]
},
{
"path": [
{
"name": "Violence in Society",
"id": "3825161"
},
{
"name": "Social Sciences",
"id": "11232"
},
{
"name": "Politics & Social Sciences",
"id": "3377866011"
},
{
"name": "Books",
"id": "283155"
}
]
}
],
"id": "amazon--0143122010",
"url": "http://www.amazon.com/dp/0143122010/?tag=buyh00-20",
"similar-products": [
"0142003344",
"0393334775",
"0670025852",
"0393314251",
"0393920100"
],
"manufacturer": "Penguin Books",
"retailer": "amazon",
"image": "http://ecx.images-amazon.com/images/I/51gpccW4V0L.jpg",
"price": 1160,
"rating": 4.3,
"reviews-count": 373
}
}
{
"amazon-cache": {
"mappings": {
"listings": {
"properties": {
"asin": {
"type": "string",
"index": "not_analyzed"
},
"categories": {
"properties": {
"path": {
"properties": {
"id": {
"type": "string",
"index": "not_analyzed"
},
"name": {
"type": "string",
"analyzer": "english"
}
}
}
}
},
"description": {
"type": "string",
"analyzer": "english"
},
"ean": {
"type": "string",
"index": "not_analyzed"
},
"id": {
"type": "string",
"index": "not_analyzed"
},
"image": {
"type": "string"
},
"isbn": {
"type": "string",
"index": "not_analyzed"
},
"manufacturer": {
"type": "string",
"analyzer": "english"
},
"mpn": {
"type": "string",
"index": "not_analyzed"
},
"name": {
"type": "string",
"analyzer": "english"
},
"not-active?": {
"type": "boolean"
},
"price": {
"type": "long"
},
"rating": {
"type": "double"
},
"retailer": {
"type": "string"
},
"reviews-count": {
"type": "long"
},
"shipping": {
"type": "long"
},
"similar-products": {
"type": "string"
},
"sku": {
"type": "string",
"index": "not_analyzed"
},
"upc": {
"type": "string",
"index": "not_analyzed"
},
"updated": {
"type": "date",
"format": "dateOptionalTime"
},
"url": {
"type": "string"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment