Skip to content

Instantly share code, notes, and snippets.

@ArFeRR
Created March 17, 2015 12:32
Show Gist options
  • Save ArFeRR/ebfc9aec5bbe1e238505 to your computer and use it in GitHub Desktop.
Save ArFeRR/ebfc9aec5bbe1e238505 to your computer and use it in GitHub Desktop.
product mapping
{
"parfums":{
"mappings":{
"product":{
"_meta":{
"model":"Parfums\\ProductBundle\\Entity\\Product"
},
"properties":{
"brand":{
"properties":{
"countries":{
"properties":{
"id":{
"type":"string",
"store":true
},
"name":{
"type":"string",
"store":true
}
}
},
"id":{
"type":"string",
"store":true
},
"name":{
"type":"string",
"index":"not_analyzed",
"store":true
}
}
},
"categories":{
"properties":{
"alias":{
"type":"string",
"index":"not_analyzed",
"store":true
},
"id":{
"type":"string",
"index":"not_analyzed",
"store":true
},
"nameRu":{
"type":"string",
"index":"not_analyzed",
"store":true
}
}
},
"id":{
"type":"string",
"store":true
},
"isActive":{
"type":"string",
"store":true
},
"name":{
"type":"string",
"store":true
},
"notShowInCatalog":{
"type":"string",
"store":true
},
"serie":{
"properties":{
"id":{
"type":"string",
"store":true
},
"name":{
"type":"string",
"index":"not_analyzed",
"store":true
}
}
},
"skus":{
"properties":{
"id":{
"type":"string",
"store":true
},
"isMarkdowned":{
"type":"boolean",
"store":true
},
"nameRu":{
"type":"string",
"index":"not_analyzed",
"store":true
},
"optionValues":{
"properties":{
"id":{
"type":"string",
"store":true
},
"productOption":{
"properties":{
"id":{
"type":"string",
"store":true
},
"nameRu":{
"type":"string",
"index":"not_analyzed",
"store":true
}
}
},
"value":{
"type":"string",
"index":"not_analyzed",
"store":true
}
}
},
"priceMarkdowned":{
"type":"float",
"store":true
},
"priceOriginal":{
"type":"float",
"store":true
},
"priceSpecial":{
"type":"float",
"store":true
},
"stock":{
"type":"string",
"index":"not_analyzed",
"store":true
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment