Skip to content

Instantly share code, notes, and snippets.

@dedico
Created June 25, 2012 13:55
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 dedico/2988792 to your computer and use it in GitHub Desktop.
Save dedico/2988792 to your computer and use it in GitHub Desktop.
Product mapping
{
"products" : {
"properties" : {
"categoryId" : {
"type" : "integer"
},
"description" : {
"type" : "string"
},
"id" : {
"type" : "integer"
},
"inStock" : {
"type" : "boolean"
},
"name" : {
"type" : "multi_field",
"fields" : {
"name" : {
"type" : "string"
},
"sort" : {
"type" : "string",
"index" : "not_analyzed",
"include_in_all" : false
}
}
},
"parameters" : {
"dynamic" : "true",
"properties" : {
"id" : {
"type" : "long"
},
"name" : {
"type" : "string"
},
"translations" : {
"dynamic" : "true",
"properties" : {
"de" : {
"type" : "string"
},
"pl" : {
"type" : "string"
}
}
}
}
},
"popularity" : {
"type" : "integer"
},
"price" : {
"type" : "double"
},
"sKU" : {
"type" : "string"
},
"timestamp" : {
"type" : "date",
"format" : "dateOptionalTime"
},
"weight" : {
"type" : "double"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment