Skip to content

Instantly share code, notes, and snippets.

@nihtalak
Last active August 29, 2015 14:01
Show Gist options
  • Save nihtalak/0fb8eb07c61d1f0d34df to your computer and use it in GitHub Desktop.
Save nihtalak/0fb8eb07c61d1f0d34df to your computer and use it in GitHub Desktop.
{
"events": {
"template" : "events*",
"settings" : {
},
"mappings" : {
"widget" : {
"properties" : {
"application_id" : {
"type" : "string",
"index" : "not_analyzed"
},
"city" : {
"type" : "string",
"index" : "not_analyzed"
},
"country" : {
"type" : "string",
"index" : "not_analyzed"
},
"created_at" : {
"type" : "date",
"format" : "dateOptionalTime"
},
"event" : {
"type" : "string",
"index" : "not_analyzed"
},
"identifier" : {
"type" : "string",
"index" : "not_analyzed"
},
"ip" : {
"type" : "string",
"index" : "not_analyzed"
},
"raw_data" : {
"type" : "string",
"index" : "not_analyzed"
},
"sheight" : {
"type" : "string",
"index" : "not_analyzed"
},
"swidth" : {
"type" : "string",
"index" : "not_analyzed"
},
"tid" : {
"type" : "string",
"index" : "not_analyzed"
},
"user_identifier" : {
"type" : "long"
}
}
},
"thing" : {
"properties" : {
"application_id" : {
"type" : "string",
"index" : "not_analyzed"
},
"device_id" : {
"type" : "string",
"index" : "not_analyzed"
},
"city" : {
"type" : "string",
"index" : "not_analyzed"
},
"country" : {
"type" : "string",
"index" : "not_analyzed"
},
"lat" : {
"type" : "float",
"index" : "not_analyzed"
},
"lng" : {
"type" : "float",
"index" : "not_analyzed"
},
"created_at" : {
"type" : "date",
"format" : "dateOptionalTime"
},
"event" : {
"type" : "string",
"index" : "not_analyzed"
},
"identifier" : {
"type" : "string",
"index" : "not_analyzed"
},
"ip" : {
"type" : "string",
"index" : "not_analyzed"
},
"raw_data" : {
"type" : "string",
"index" : "not_analyzed"
},
"sheight" : {
"type" : "string",
"index" : "not_analyzed"
},
"swidth" : {
"type" : "string",
"index" : "not_analyzed"
},
"tid" : {
"type" : "string",
"index" : "not_analyzed"
},
"pid" : {
"type" : "string",
"index" : "not_analyzed"
},
"user_identifier" : {
"type" : "long"
}
}
},
"product" : {
"properties" : {
"application_id" : {
"type" : "string",
"index" : "not_analyzed"
},
"device_id" : {
"type" : "string",
"index" : "not_analyzed"
},
"city" : {
"type" : "string",
"index" : "not_analyzed"
},
"country" : {
"type" : "string",
"index" : "not_analyzed"
},
"lat" : {
"type" : "float",
"index" : "not_analyzed"
},
"lng" : {
"type" : "float",
"index" : "not_analyzed"
},
"created_at" : {
"type" : "date",
"format" : "dateOptionalTime"
},
"event" : {
"type" : "string",
"index" : "not_analyzed"
},
"identifier" : {
"type" : "string",
"index" : "not_analyzed"
},
"ip" : {
"type" : "string",
"index" : "not_analyzed"
},
"raw_data" : {
"type" : "string",
"index" : "not_analyzed"
},
"sheight" : {
"type" : "string",
"index" : "not_analyzed"
},
"swidth" : {
"type" : "string",
"index" : "not_analyzed"
},
"tid" : {
"type" : "string",
"index" : "not_analyzed"
},
"pid" : {
"type" : "string",
"index" : "not_analyzed"
},
"user_identifier" : {
"type" : "long"
}
}
},
"recommended" : {
"properties" : {
"created_at" : {
"type" : "date",
"format" : "dateOptionalTime"
},
"event" : {
"type" : "string",
"index" : "not_analyzed"
},
"identifier" : {
"type" : "string",
"index" : "not_analyzed"
},
"ip" : {
"type" : "string",
"index" : "not_analyzed"
},
"pid" : {
"type" : "string",
"index" : "not_analyzed"
},
"referrer" : {
"type" : "string",
"index" : "not_analyzed"
},
"tid" : {
"type" : "string",
"index" : "not_analyzed"
},
"url" : {
"type" : "string",
"index" : "not_analyzed"
},
"user_identifier" : {
"type" : "long",
"index" : "not_analyzed"
}
}
},
"promo" : {
"properties" : {
"created_at" : {
"type" : "date",
"format" : "dateOptionalTime"
},
"event" : {
"type" : "string",
"index" : "not_analyzed"
},
"identifier" : {
"type" : "string",
"index" : "not_analyzed"
},
"ip" : {
"type" : "string",
"index" : "not_analyzed"
},
"language" : {
"type" : "string",
"index" : "not_analyzed"
},
"lat" : {
"type" : "double",
"index" : "not_analyzed"
},
"lng" : {
"type" : "double",
"index" : "not_analyzed"
},
"promotion_id" : {
"type" : "long",
"index" : "not_analyzed"
},
"user_agent" : {
"type" : "string"
},
"user_id" : {
"type" : "string",
"index" : "not_analyzed"
},
"user_identifier" : {
"type" : "long",
"index" : "not_analyzed"
}
}
},
"beacon" : {
"properties" : {
"beacon_acceleration" : {
"type" : "long",
"index" : "not_analyzed"
},
"beacon_distance" : {
"type" : "long",
"index" : "not_analyzed"
},
"beacon_id" : {
"type" : "string",
"index" : "not_analyzed"
},
"beacon_temperature" : {
"type" : "long",
"index" : "not_analyzed"
},
"created_at" : {
"type" : "date",
"format" : "dateOptionalTime"
},
"event" : {
"type" : "string",
"index" : "not_analyzed"
},
"identifier" : {
"type" : "string",
"index" : "not_analyzed"
},
"ip" : {
"type" : "string",
"index" : "not_analyzed"
},
"language" : {
"type" : "string",
"index" : "not_analyzed"
},
"lat" : {
"type" : "double",
"index" : "not_analyzed"
},
"lng" : {
"type" : "double",
"index" : "not_analyzed"
},
"user_agent" : {
"type" : "string"
},
"user_id" : {
"type" : "string",
"index" : "not_analyzed"
},
"user_identifier" : {
"type" : "long",
"index" : "not_analyzed"
}
}
},
"creative" : {
"properties" : {
"created_at" : {
"type" : "date",
"format" : "dateOptionalTime"
},
"event" : {
"type" : "string",
"index" : "not_analyzed"
},
"identifier" : {
"type" : "string",
"index" : "not_analyzed"
},
"ip" : {
"type" : "string",
"index" : "not_analyzed"
},
"language" : {
"type" : "string",
"index" : "not_analyzed"
},
"lat" : {
"type" : "double",
"index" : "not_analyzed"
},
"lng" : {
"type" : "double",
"index" : "not_analyzed"
},
"creative_id" : {
"type" : "long",
"index" : "not_analyzed"
},
"user_agent" : {
"type" : "string"
},
"user_id" : {
"type" : "string",
"index" : "not_analyzed"
},
"user_identifier" : {
"type" : "long",
"index" : "not_analyzed"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment