Skip to content

Instantly share code, notes, and snippets.

@stephlag
Last active August 29, 2015 14:01
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 stephlag/f9402c699374438c3ede to your computer and use it in GitHub Desktop.
Save stephlag/f9402c699374438c3ede to your computer and use it in GitHub Desktop.
Denormalized mapping
DELETE /products_den/
PUT /products_den/
PUT /products_den/_mapping/productoffer
{
"productoffer": {
"properties": {
"id": {
"type": "string",
"index": "not_analyzed"
},
"productId":{
"type":"string",
"index": "not_analyzed"
},
"title": {
"type": "string"
},
"extendedTitle": {
"type": "string"
},
"categoryId": {
"type": "long"
},
"categoryName": {
"type": "string",
"index": "not_analyzed"
},
"categoryPath": {
"type": "string"
},
"description": {
"type": "string"
},
"fullDescription": {
"type": "string"
},
"bestPrice": {
"type": "float"
},
"price": {
"type": "float"
},
"sellerId": {
"type": "integer"
},
"sellerName": {
"type": "string",
"index": "not_analyzed"
},
"used": {
"type": "boolean"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment