Skip to content

Instantly share code, notes, and snippets.

@nihtalak
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save nihtalak/0fb8eb07c61d1f0d34df to your computer and use it in GitHub Desktop.

Select an option

Save nihtalak/0fb8eb07c61d1f0d34df to your computer and use it in GitHub Desktop.

Revisions

  1. nihtalak renamed this gist May 14, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. nihtalak created this gist May 14, 2014.
    387 changes: 387 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,387 @@
    {
    "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"
    }
    }
    }
    }
    }
    }