Skip to content

Instantly share code, notes, and snippets.

@mattfield11
Created September 1, 2017 10:29
Show Gist options
  • Save mattfield11/55d03733af976731038a41d1b2b2e178 to your computer and use it in GitHub Desktop.
Save mattfield11/55d03733af976731038a41d1b2b2e178 to your computer and use it in GitHub Desktop.
PUT user_purchases
{
"mappings": {
"user_history": {
"properties": {
"user_id":{
"type": "text",
"fields": {
"raw": {
"type": "keyword"
}
}
},
"product_id":{
"type": "text",
"fields": {
"raw": {
"type": "keyword"
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment