Skip to content

Instantly share code, notes, and snippets.

@Pyppe
Last active August 29, 2015 14:24
Show Gist options
  • Save Pyppe/846169aca708a0bbd362 to your computer and use it in GitHub Desktop.
Save Pyppe/846169aca708a0bbd362 to your computer and use it in GitHub Desktop.
Elasticsearch terms aggregation issue
{
"created_at": "Tue May 12 21:04:07 +0000 2015",
"id": 598232209208832000,
"id_str": "598232209208832000",
"text": "Suomen @PinnallaFI-twiittidatan kiroilufrekvenssi kuvastaa melko hyvin #mmkisat-ratk.hetkiä\n#visualisointi #perkele http://t.co/VHurLxeHgg",
"source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"geo": null,
"coordinates": null,
"place": null,
"contributors": null,
"retweet_count": 0,
"favorite_count": 0,
"entities": {
"hashtags": [
{
"text": "mmkisat",
"indices": [
71,
79
]
},
{
"text": "visualisointi",
"indices": [
92,
106
]
},
{
"text": "perkele",
"indices": [
107,
115
]
}
],
"trends": [],
"urls": [],
"user_mentions": [
{
"screen_name": "PinnallaFI",
"name": "Pinnalla",
"id": 2844245134,
"id_str": "2844245134",
"indices": [
7,
18
]
}
],
"symbols": [],
"media": [
{
"id": 598232208093024256,
"id_str": "598232208093024256",
"indices": [
116,
138
],
"media_url": "http://pbs.twimg.com/media/CE1ZBhCVEAAIv0Z.png",
"media_url_https": "https://pbs.twimg.com/media/CE1ZBhCVEAAIv0Z.png",
"url": "http://t.co/VHurLxeHgg",
"display_url": "pic.twitter.com/VHurLxeHgg",
"expanded_url": "http://twitter.com/pyrylahti/status/598232209208832000/photo/1",
"type": "photo",
"sizes": {
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"small": {
"w": 340,
"h": 201,
"resize": "fit"
},
"large": {
"w": 1024,
"h": 607,
"resize": "fit"
},
"medium": {
"w": 600,
"h": 355,
"resize": "fit"
}
}
}
]
},
"extended_entities": {
"media": [
{
"id": 598232208093024256,
"id_str": "598232208093024256",
"indices": [
116,
138
],
"media_url": "http://pbs.twimg.com/media/CE1ZBhCVEAAIv0Z.png",
"media_url_https": "https://pbs.twimg.com/media/CE1ZBhCVEAAIv0Z.png",
"url": "http://t.co/VHurLxeHgg",
"display_url": "pic.twitter.com/VHurLxeHgg",
"expanded_url": "http://twitter.com/pyrylahti/status/598232209208832000/photo/1",
"type": "photo",
"sizes": {
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"small": {
"w": 340,
"h": 201,
"resize": "fit"
},
"large": {
"w": 1024,
"h": 607,
"resize": "fit"
},
"medium": {
"w": 600,
"h": 355,
"resize": "fit"
}
}
}
]
},
"favorited": false,
"retweeted": false,
"possibly_sensitive": false,
"filter_level": "low",
"lang": "fi",
"timestamp_ms": "1431464647949",
"user": {
"id": 111684011,
"id_str": "111684011",
"name": "Pyry-Samuli Lahti",
"screen_name": "pyrylahti",
"location": "Finland",
"url": "http://www.pyppe.fi",
"description": "Software guy at @TrademarkNow",
"followers_count": 148,
"listed_count": 6,
"favourites_count": 249,
"statuses_count": 638,
"created_at": "Fri Feb 05 20:17:32 +0000 2010",
"time_zone": "Helsinki",
"lang": "en",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/2220993883/pyppe_2009_square_normal.png"
}
}
{
"tweet" : {
"_id" : {
"path" : "id_str"
},
"properties" : {
"coordinates" : {
"properties" : {
"type" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"coordinates" : {
"type" : "geo_point",
"doc_values": true,
"fielddata" : {
"format" : "compressed",
"precision" : "3m"
}
}
}
},
"created_at" : {
"type" : "date",
"format" : "EE MMM d HH:mm:ss Z yyyy",
"doc_values": true
},
"entities" : {
"properties" : {
"hashtags" : {
"properties" : {
"indices" : {
"type" : "long"
},
"text" : {
"type" : "string",
"index_analyzer" : "standard"
}
}
},
"media" : {
"properties" : {
"display_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"expanded_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"id" : {
"type" : "long",
"doc_values": true
},
"id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"indices" : {
"type" : "long"
},
"media_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"media_url_https" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"sizes" : {
"properties" : {
"large" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"medium" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"small" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"thumb" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
}
}
},
"source_status_id" : {
"type" : "long",
"doc_values": true
},
"source_status_id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"type" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
}
}
},
"symbols" : {
"properties" : {
"indices" : {
"type" : "long",
"doc_values": true
},
"text" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
}
}
},
"urls" : {
"properties" : {
"display_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"expanded_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"indices" : {
"type" : "long"
},
"url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
}
}
},
"user_mentions" : {
"properties" : {
"id" : {
"type" : "long",
"doc_values": true
},
"id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"indices" : {
"type" : "long"
},
"name" : {
"type" : "string"
},
"screen_name" : {
"type" : "string",
"index_analyzer" : "standard"
}
}
}
}
},
"extended_entities" : {
"properties" : {
"media" : {
"properties" : {
"display_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"expanded_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"id" : {
"type" : "long",
"doc_values": true
},
"id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"indices" : {
"type" : "long"
},
"media_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"media_url_https" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"sizes" : {
"properties" : {
"large" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"medium" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"small" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"thumb" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
}
}
},
"source_status_id" : {
"type" : "long",
"doc_values": true
},
"source_status_id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"type" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"video_info" : {
"properties" : {
"aspect_ratio" : {
"type" : "long",
"doc_values": true
},
"duration_millis" : {
"type" : "long",
"doc_values": true
},
"variants" : {
"properties" : {
"bitrate" : {
"type" : "long",
"doc_values": true
},
"content_type" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
}
}
}
}
}
}
}
}
},
"favorite_count" : {
"type" : "long",
"doc_values": true
},
"favorited" : {
"type" : "boolean"
},
"filter_level" : {
"type" : "string"
},
"geo" : {
"properties" : {
"coordinates" : {
"type" : "double"
},
"type" : {
"type" : "string"
}
}
},
"id" : {
"type" : "long",
"doc_values": true
},
"id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"in_reply_to_screen_name" : {
"type" : "string",
"index_analyzer" : "standard"
},
"in_reply_to_status_id" : {
"type" : "long",
"doc_values": true
},
"in_reply_to_status_id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"in_reply_to_user_id" : {
"type" : "long",
"doc_values": true
},
"in_reply_to_user_id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"lang" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"place" : {
"properties" : {
"attributes" : {
"type" : "object"
},
"bounding_box" : {
"properties" : {
"coordinates" : {
"type" : "double"
},
"type" : {
"type" : "string"
}
}
},
"country" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"country_code" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"full_name" : {
"type" : "string"
},
"id" : {
"type" : "string"
},
"name" : {
"type" : "string"
},
"place_type" : {
"type" : "string"
},
"url" : {
"type" : "string"
}
}
},
"possibly_sensitive" : {
"type" : "boolean"
},
"quoted_status": {
"properties": {
"coordinates" : {
"properties" : {
"type" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"coordinates" : {
"type" : "geo_point",
"doc_values": true,
"fielddata" : {
"format" : "compressed",
"precision" : "3m"
}
}
}
},
"created_at": {
"type" : "date",
"format" : "EE MMM d HH:mm:ss Z yyyy",
"doc_values": true
},
"entities" : {
"properties" : {
"hashtags" : {
"properties" : {
"indices" : {
"type" : "long"
},
"text" : {
"type" : "string",
"index_analyzer" : "standard"
}
}
},
"media" : {
"properties" : {
"display_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"expanded_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"id" : {
"type" : "long",
"doc_values": true
},
"id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"indices" : {
"type" : "long"
},
"media_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"media_url_https" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"sizes" : {
"properties" : {
"large" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"medium" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"small" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"thumb" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
}
}
},
"source_status_id" : {
"type" : "long",
"doc_values": true
},
"source_status_id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"type" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
}
}
},
"symbols" : {
"properties" : {
"indices" : {
"type" : "long",
"doc_values": true
},
"text" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
}
}
},
"urls" : {
"properties" : {
"display_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"expanded_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"indices" : {
"type" : "long"
},
"url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
}
}
},
"user_mentions" : {
"properties" : {
"id" : {
"type" : "long",
"doc_values": true
},
"id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"indices" : {
"type" : "long"
},
"name" : {
"type" : "string"
},
"screen_name" : {
"type" : "string",
"index_analyzer" : "standard"
}
}
}
}
},
"extended_entities" : {
"properties" : {
"media" : {
"properties" : {
"display_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"expanded_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"id" : {
"type" : "long",
"doc_values": true
},
"id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"indices" : {
"type" : "long"
},
"media_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"media_url_https" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"sizes" : {
"properties" : {
"large" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"medium" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"small" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"thumb" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
}
}
},
"source_status_id" : {
"type" : "long",
"doc_values": true
},
"source_status_id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"type" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"video_info" : {
"properties" : {
"aspect_ratio" : {
"type" : "long",
"doc_values": true
},
"duration_millis" : {
"type" : "long",
"doc_values": true
},
"variants" : {
"properties" : {
"bitrate" : {
"type" : "long",
"doc_values": true
},
"content_type" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
}
}
}
}
}
}
}
}
},
"favorite_count": {
"type": "long",
"doc_values": true
},
"favorited": {
"type": "boolean",
"doc_values": true
},
"filter_level": {
"type": "string"
},
"geo": {
"properties": {
"coordinates": {
"type": "double"
},
"type": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
}
}
},
"id": {
"type": "long",
"doc_values": true
},
"id_str": {
"type": "string",
"index" : "not_analyzed",
"doc_values": true
},
"in_reply_to_screen_name": {
"type": "string",
"index_analyzer" : "standard"
},
"in_reply_to_status_id": {
"type": "long",
"doc_values": true
},
"in_reply_to_status_id_str": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
},
"in_reply_to_user_id": {
"type": "long",
"doc_values": true
},
"in_reply_to_user_id_str": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
},
"lang": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
},
"place" : {
"properties" : {
"attributes" : {
"type" : "object"
},
"bounding_box" : {
"properties" : {
"coordinates" : {
"type" : "double"
},
"type" : {
"type" : "string"
}
}
},
"country" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"country_code" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"full_name" : {
"type" : "string"
},
"id" : {
"type" : "string"
},
"name" : {
"type" : "string"
},
"place_type" : {
"type" : "string"
},
"url" : {
"type" : "string"
}
}
},
"possibly_sensitive": {
"type": "boolean"
},
"quoted_status_id": {
"type": "long",
"doc_values": true
},
"quoted_status_id_str": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
},
"retweet_count": {
"type": "long",
"doc_values": true
},
"retweeted": {
"type": "boolean",
"doc_values": true
},
"scopes": {
"properties": {
"followers": { "type": "boolean", "doc_values": true },
"place_ids": { "type": "string", "index" : "not_analyzed", "doc_values": true }
}
},
"source": {
"type": "string",
"index" : "not_analyzed",
"doc_values": true
},
"text": {
"type": "string"
},
"truncated": {
"type": "boolean",
"doc_values": true
},
"user" : {
"properties" : {
"id": { "type": "long", "doc_values": true },
"id_str": { "type": "string", "index" : "not_analyzed", "doc_values": true },
"description": { "type": "string" },
"location": { "type": "string" },
"name": { "type": "string" },
"screen_name": { "type": "string", "index_analyzer": "standard" },
"url": { "type": "string" }
}
}
}
},
"quoted_status_id": {
"type": "long",
"doc_values": true
},
"quoted_status_id_str": {
"type": "string",
"index" : "not_analyzed",
"doc_values": true
},
"retweet_count" : {
"type" : "long"
},
"retweeted" : {
"type" : "boolean"
},
"scopes": {
"properties": {
"followers": { "type": "boolean", "doc_values": true },
"place_ids": { "type": "string", "index" : "not_analyzed", "doc_values": true }
}
},
"source" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"text" : {
"type" : "string"
},
"timestamp_ms" : {
"type" : "date",
"doc_values": true
},
"truncated" : {
"type" : "boolean"
},
"user" : {
"properties" : {
"id" : {
"type" : "long",
"doc_values": true
},
"id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"description" : {
"type" : "string"
},
"location" : {
"type" : "string"
},
"name" : {
"type" : "string"
},
"screen_name" : {
"type" : "string",
"index_analyzer" : "standard"
},
"url" : {
"type" : "string"
}
}
},
"retweeted_status" : {
"properties" : {
"contributors" : {
"type" : "long",
"doc_values": true
},
"coordinates" : {
"properties" : {
"type" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"coordinates" : {
"type" : "geo_point",
"doc_values": true,
"fielddata" : {
"format" : "compressed",
"precision" : "3m"
}
}
}
},
"created_at" : {
"type" : "date",
"format" : "EE MMM d HH:mm:ss Z yyyy",
"doc_values": true
},
"entities" : {
"properties" : {
"hashtags" : {
"properties" : {
"indices" : {
"type" : "long"
},
"text" : {
"type" : "string",
"index_analyzer" : "standard"
}
}
},
"media" : {
"properties" : {
"display_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"expanded_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"id" : {
"type" : "long",
"doc_values": true
},
"id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"indices" : {
"type" : "long"
},
"media_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"media_url_https" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"sizes" : {
"properties" : {
"large" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"medium" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"small" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"thumb" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
}
}
},
"source_status_id" : {
"type" : "long",
"doc_values": true
},
"source_status_id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"type" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
}
}
},
"symbols" : {
"properties" : {
"indices" : {
"type" : "long",
"doc_values": true
},
"text" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
}
}
},
"urls" : {
"properties" : {
"display_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"expanded_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"indices" : {
"type" : "long"
},
"url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
}
}
},
"user_mentions" : {
"properties" : {
"id" : {
"type" : "long",
"doc_values": true
},
"id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"indices" : {
"type" : "long"
},
"name" : {
"type" : "string"
},
"screen_name" : {
"type" : "string",
"index_analyzer" : "standard"
}
}
}
}
},
"extended_entities" : {
"properties" : {
"media" : {
"properties" : {
"display_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"expanded_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"id" : {
"type" : "long",
"doc_values": true
},
"id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"indices" : {
"type" : "long"
},
"media_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"media_url_https" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"sizes" : {
"properties" : {
"large" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"medium" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"small" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"thumb" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
}
}
},
"source_status_id" : {
"type" : "long",
"doc_values": true
},
"source_status_id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"type" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"video_info" : {
"properties" : {
"aspect_ratio" : {
"type" : "long",
"doc_values": true
},
"duration_millis" : {
"type" : "long",
"doc_values": true
},
"variants" : {
"properties" : {
"bitrate" : {
"type" : "long",
"doc_values": true
},
"content_type" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
}
}
}
}
}
}
}
}
},
"favorite_count" : {
"type" : "long",
"doc_values": true
},
"favorited" : {
"type" : "boolean"
},
"filter_level" : {
"type" : "string"
},
"geo" : {
"properties" : {
"coordinates" : {
"type" : "double"
},
"type" : {
"type" : "string"
}
}
},
"id" : {
"type" : "long",
"doc_values": true
},
"id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"in_reply_to_screen_name" : {
"type" : "string",
"index_analyzer" : "standard"
},
"in_reply_to_status_id" : {
"type" : "long",
"doc_values": true
},
"in_reply_to_status_id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"in_reply_to_user_id" : {
"type" : "long",
"doc_values": true
},
"in_reply_to_user_id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"lang" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"place" : {
"properties" : {
"attributes" : {
"type" : "object"
},
"bounding_box" : {
"properties" : {
"coordinates" : {
"type" : "double"
},
"type" : {
"type" : "string"
}
}
},
"country" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"country_code" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"full_name" : {
"type" : "string"
},
"id" : {
"type" : "string"
},
"name" : {
"type" : "string"
},
"place_type" : {
"type" : "string"
},
"url" : {
"type" : "string"
}
}
},
"possibly_sensitive" : {
"type" : "boolean"
},
"quoted_status": {
"properties": {
"coordinates" : {
"properties" : {
"type" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"coordinates" : {
"type" : "geo_point",
"doc_values": true,
"fielddata" : {
"format" : "compressed",
"precision" : "3m"
}
}
}
},
"created_at": {
"type" : "date",
"format" : "EE MMM d HH:mm:ss Z yyyy",
"doc_values": true
},
"entities" : {
"properties" : {
"hashtags" : {
"properties" : {
"indices" : {
"type" : "long"
},
"text" : {
"type" : "string",
"index_analyzer" : "standard"
}
}
},
"media" : {
"properties" : {
"display_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"expanded_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"id" : {
"type" : "long",
"doc_values": true
},
"id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"indices" : {
"type" : "long"
},
"media_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"media_url_https" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"sizes" : {
"properties" : {
"large" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"medium" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"small" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"thumb" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
}
}
},
"source_status_id" : {
"type" : "long",
"doc_values": true
},
"source_status_id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"type" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
}
}
},
"symbols" : {
"properties" : {
"indices" : {
"type" : "long",
"doc_values": true
},
"text" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
}
}
},
"urls" : {
"properties" : {
"display_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"expanded_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"indices" : {
"type" : "long"
},
"url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
}
}
},
"user_mentions" : {
"properties" : {
"id" : {
"type" : "long",
"doc_values": true
},
"id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"indices" : {
"type" : "long"
},
"name" : {
"type" : "string"
},
"screen_name" : {
"type" : "string",
"index_analyzer" : "standard"
}
}
}
}
},
"extended_entities" : {
"properties" : {
"media" : {
"properties" : {
"display_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"expanded_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"id" : {
"type" : "long",
"doc_values": true
},
"id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"indices" : {
"type" : "long"
},
"media_url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"media_url_https" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"sizes" : {
"properties" : {
"large" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"medium" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"small" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
},
"thumb" : {
"properties" : {
"h" : {
"type" : "long"
},
"resize" : {
"type" : "string"
},
"w" : {
"type" : "long"
}
}
}
}
},
"source_status_id" : {
"type" : "long",
"doc_values": true
},
"source_status_id_str" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"type" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"video_info" : {
"properties" : {
"aspect_ratio" : {
"type" : "long",
"doc_values": true
},
"duration_millis" : {
"type" : "long",
"doc_values": true
},
"variants" : {
"properties" : {
"bitrate" : {
"type" : "long",
"doc_values": true
},
"content_type" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"url" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
}
}
}
}
}
}
}
}
},
"favorite_count": {
"type": "long",
"doc_values": true
},
"favorited": {
"type": "boolean",
"doc_values": true
},
"filter_level": {
"type": "string"
},
"geo": {
"properties": {
"coordinates": {
"type": "double"
},
"type": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
}
}
},
"id": {
"type": "long",
"doc_values": true
},
"id_str": {
"type": "string",
"index" : "not_analyzed",
"doc_values": true
},
"in_reply_to_screen_name": {
"type": "string",
"index_analyzer" : "standard"
},
"in_reply_to_status_id": {
"type": "long",
"doc_values": true
},
"in_reply_to_status_id_str": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
},
"in_reply_to_user_id": {
"type": "long",
"doc_values": true
},
"in_reply_to_user_id_str": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
},
"lang": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
},
"place" : {
"properties" : {
"attributes" : {
"type" : "object"
},
"bounding_box" : {
"properties" : {
"coordinates" : {
"type" : "double"
},
"type" : {
"type" : "string"
}
}
},
"country" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"country_code" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"full_name" : {
"type" : "string"
},
"id" : {
"type" : "string"
},
"name" : {
"type" : "string"
},
"place_type" : {
"type" : "string"
},
"url" : {
"type" : "string"
}
}
},
"possibly_sensitive": {
"type": "boolean"
},
"quoted_status_id": {
"type": "long",
"doc_values": true
},
"quoted_status_id_str": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
},
"retweet_count": {
"type": "long",
"doc_values": true
},
"retweeted": {
"type": "boolean",
"doc_values": true
},
"scopes": {
"properties": {
"followers": { "type": "boolean", "doc_values": true },
"place_ids": { "type": "string", "index" : "not_analyzed", "doc_values": true }
}
},
"source": {
"type": "string",
"index" : "not_analyzed",
"doc_values": true
},
"text": {
"type": "string"
},
"truncated": {
"type": "boolean",
"doc_values": true
},
"user" : {
"properties" : {
"id": { "type": "long", "doc_values": true },
"id_str": { "type": "string", "index" : "not_analyzed", "doc_values": true },
"description": { "type": "string" },
"location": { "type": "string" },
"name": { "type": "string" },
"screen_name": { "type": "string", "index_analyzer": "standard" },
"url": { "type": "string" }
}
}
}
},
"quoted_status_id": {
"type": "long",
"doc_values": true
},
"quoted_status_id_str": {
"type": "string",
"index" : "not_analyzed",
"doc_values": true
},
"retweet_count" : {
"type" : "long",
"doc_values": true
},
"retweeted" : {
"type" : "boolean"
},
"scopes": {
"properties": {
"followers": { "type": "boolean", "doc_values": true },
"place_ids": { "type": "string", "index" : "not_analyzed", "doc_values": true }
}
},
"source" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values": true
},
"text" : {
"type" : "string"
},
"timestamp_ms" : {
"type" : "date",
"doc_values": true
},
"truncated" : {
"type" : "boolean",
"doc_values": true
},
"user" : {
"properties" : {
"id": { "type": "long", "doc_values": true },
"id_str": { "type": "string", "index" : "not_analyzed", "doc_values": true },
"description": { "type": "string" },
"location": { "type": "string" },
"name": { "type": "string" },
"screen_name": { "type": "string", "index_analyzer": "standard" },
"url": { "type": "string" }
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment