Skip to content

Commit

Permalink
[search] Add correct start date in twitter example
Browse files Browse the repository at this point in the history
  • Loading branch information
romainr committed May 28, 2014
1 parent de0b82f commit 1e8ea71
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"is_core_only": false,
"result": 31,
"cores": "{}",
"properties": "{\"autocomplete\": false, \"field_order\": [], \"layout\": [{\"rows\": [{\"widgets\": [{\"name\": \"Pie Chart\", \"widgetType\": \"pie-widget\", \"properties\": {}, \"isLoading\": false, \"offset\": 0, \"klass\": \"card card-widget span12\", \"id\": \"1c69b68c-7b4d-8928-a0b4-58f17d4d1f39\", \"size\": 12}]}, {\"widgets\": [{\"name\": \"Facet\", \"widgetType\": \"facet-widget\", \"properties\": {}, \"isLoading\": false, \"offset\": 0, \"klass\": \"card card-widget span12\", \"id\": \"f479bde4-e7e2-b835-45e9-da1faa424673\", \"size\": 12}]}, {\"widgets\": [{\"name\": \"Facet\", \"widgetType\": \"facet-widget\", \"properties\": {}, \"isLoading\": false, \"offset\": 0, \"klass\": \"card card-widget span12\", \"id\": \"7be3eaf8-d94a-152d-646c-1461981381e6\", \"size\": 12}]}], \"klass\": \"card card-home card-column span2\", \"drops\": [\"temp\"], \"size\": 2}, {\"rows\": [{\"widgets\": [{\"name\": \"Filter Bar\", \"widgetType\": \"filter-widget\", \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"klass\": \"card card-widget span12\", \"id\": \"49d78608-4e3d-3ff6-a40e-c6ff8d5ea7ab\", \"size\": 12}]}, {\"widgets\": [{\"name\": \"Histogram\", \"widgetType\": \"histogram-widget\", \"properties\": {}, \"isLoading\": false, \"offset\": 0, \"klass\": \"card card-widget span12\", \"id\": \"fa4138d0-4d39-0520-c2fb-d78e2bf195be\", \"size\": 12}]}, {\"widgets\": [{\"name\": \"HTML Results\", \"widgetType\": \"html-resultset-widget\", \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"klass\": \"card card-widget span12\", \"id\": \"fdbe917a-2d37-7990-4f42-025eea08cc77\", \"size\": 12}]}, {\"widgets\": []}], \"klass\": \"card card-home card-column span10\", \"drops\": [\"temp\"], \"size\": 10}], \"data_type\": \"separated\", \"collection\": {\"availableFacetFields\": [{\"isDynamic\": false, \"isId\": null, \"type\": \"long\", \"name\": \"_version_\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"string\", \"name\": \"expanded_url\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"long\", \"name\": \"in_reply_to_status_id\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"long\", \"name\": \"in_reply_to_user_id\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"string\", \"name\": \"media_url_https\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"tint\", \"name\": \"retweet_count\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"boolean\", \"name\": \"retweeted\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"lowercase\", \"name\": \"source\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"text_en\", \"name\": \"text\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"text_en\", \"name\": \"user_description\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"tint\", \"name\": \"user_friends_count\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"text_en\", \"name\": \"user_name\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"text_en\", \"name\": \"user_screen_name\"}, {\"isDynamic\": false, \"isId\": true, \"type\": \"string\", \"name\": \"id\"}], \"idField\": \"id\", \"name\": \"twitter_demo\", \"fields\": [{\"isDynamic\": false, \"isId\": null, \"type\": \"long\", \"name\": \"_version_\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"tdate\", \"name\": \"created_at\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"string\", \"name\": \"expanded_url\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"long\", \"name\": \"in_reply_to_status_id\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"long\", \"name\": \"in_reply_to_user_id\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"string\", \"name\": \"media_url_https\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"tint\", \"name\": \"retweet_count\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"boolean\", \"name\": \"retweeted\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"lowercase\", \"name\": \"source\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"text_en\", \"name\": \"text\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"text_en\", \"name\": \"user_description\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"tint\", \"name\": \"user_followers_count\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"tint\", \"name\": \"user_friends_count\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"lowercase\", \"name\": \"user_location\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"text_en\", \"name\": \"user_name\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"text_en\", \"name\": \"user_screen_name\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"tint\", \"name\": \"user_statuses_count\"}, {\"isDynamic\": false, \"isId\": true, \"type\": \"string\", \"name\": \"id\"}], \"facets\": [{\"widgetType\": \"histogram-widget\", \"id\": \"fa4138d0-4d39-0520-c2fb-d78e2bf195be\", \"field\": \"created_at\", \"label\": \"created_at\", \"type\": \"range\", \"properties\": {\"sort\": \"desc\", \"andUp\": false, \"end\": \"2014-02-26T04:45:00Z\", \"stacked\": false, \"gap\": \"+15MINUTES\", \"start\": \"2014-02-25T16:00:00Z\", \"limit\": 10, \"mincount\": 0, \"canRange\": true, \"isDate\": true}}, {\"widgetType\": \"pie-widget\", \"id\": \"1c69b68c-7b4d-8928-a0b4-58f17d4d1f39\", \"field\": \"user_location\", \"label\": \"user_location\", \"type\": \"field\", \"properties\": {\"sort\": \"desc\", \"andUp\": false, \"stacked\": false, \"limit\": \"20\", \"mincount\": 0, \"canRange\": false, \"isDate\": false}}, {\"widgetType\": \"facet-widget\", \"id\": \"f479bde4-e7e2-b835-45e9-da1faa424673\", \"field\": \"user_statuses_count\", \"label\": \"user_statuses_count\", \"type\": \"range\", \"properties\": {\"sort\": \"desc\", \"andUp\": false, \"end\": \"2500000\", \"max\": 2500000, \"stacked\": false, \"gap\": \"250000\", \"start\": 0, \"min\": 0, \"limit\": 10, \"mincount\": 0, \"canRange\": true, \"isDate\": false}}, {\"widgetType\": \"facet-widget\", \"id\": \"7be3eaf8-d94a-152d-646c-1461981381e6\", \"field\": \"user_followers_count\", \"label\": \"user_followers_count\", \"type\": \"range\", \"properties\": {\"sort\": \"desc\", \"andUp\": false, \"end\": \"9000000\", \"max\": 9000000, \"stacked\": false, \"gap\": \"900000\", \"start\": 0, \"min\": 0, \"limit\": 10, \"mincount\": 0, \"canRange\": true, \"isDate\": false}}], \"enabled\": true, \"label\": \"Twitter\", \"selectedDocument\": {}, \"template\": {\"extracode\": \"&lt;style type=&quot;text/css&quot;&gt;em {\\n font-weight: bold;\\n background-color: yellow;\\n}\\n.avatar {\\n margin: 10px;\\n}\\n.created {\\n margin-top: 10px;\\n color: #CCC;\\n}\\n.openTweet {\\n float: right;\\n margin: 10px;\\n}\\n&lt;/style&gt;\\n\\n&lt;script&gt;\\n&lt;/script&gt;\", \"rows\": 10, \"fieldsAttributes\": [{\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"_version_\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"created_at\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"expanded_url\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"in_reply_to_status_id\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"in_reply_to_user_id\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"media_url_https\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"retweet_count\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"retweeted\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"source\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"text\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"user_description\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"user_followers_count\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"user_friends_count\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"user_location\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"user_name\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"user_screen_name\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"user_statuses_count\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"id\"}], \"isGridLayout\": false, \"fieldsSelected\": [\"created_at\", \"retweet_count\", \"retweeted\", \"source\", \"text\", \"media_url_https\", \"in_reply_to_user_id\", \"in_reply_to_status_id\", \"expanded_url\", \"user_screen_name\", \"user_location\", \"user_name\"], \"showFieldList\": true, \"template\": \"\\n\\n<div class=\\\"row-fluid\\\">\\n <div class=\\\"row-fluid\\\">\\n <div class=\\\"row-fluid\\\">\\n <div class=\\\"span1\\\">\\n <img src=\\\"http://twitter.com/api/users/profile_image/{{user_screen_name}}\\\" class=\\\"avatar\\\">\\n </div>\\n <div class=\\\"span11\\\">\\n <b>{{user_name}}</b>\\n <br>\\n <a href=\\\"https://twitter.com/{{user_screen_name}}/status/{{id}}\\\" target=\\\"_blank\\\">\\n {{text}}\\n </a>\\n <br>\\n <div class=\\\"created\\\">{{#fromnow}}{{created_at}}{{/fromnow}}</div>\\n </div>\\n </div>\\n <br>\\n </div>\\n </div>\\n \\n \", \"highlighting\": [\"\"], \"properties\": {\"highlighting_enabled\": true}}, \"id\": 20000000}}"
"properties": "{\"autocomplete\": false, \"field_order\": [], \"layout\": [{\"rows\": [{\"widgets\": [{\"name\": \"Pie Chart\", \"widgetType\": \"pie-widget\", \"properties\": {}, \"isLoading\": false, \"offset\": 0, \"klass\": \"card card-widget span12\", \"id\": \"1c69b68c-7b4d-8928-a0b4-58f17d4d1f39\", \"size\": 12}]}, {\"widgets\": [{\"name\": \"Facet\", \"widgetType\": \"facet-widget\", \"properties\": {}, \"isLoading\": false, \"offset\": 0, \"klass\": \"card card-widget span12\", \"id\": \"f479bde4-e7e2-b835-45e9-da1faa424673\", \"size\": 12}]}, {\"widgets\": [{\"name\": \"Facet\", \"widgetType\": \"facet-widget\", \"properties\": {}, \"isLoading\": false, \"offset\": 0, \"klass\": \"card card-widget span12\", \"id\": \"7be3eaf8-d94a-152d-646c-1461981381e6\", \"size\": 12}]}], \"klass\": \"card card-home card-column span2\", \"drops\": [\"temp\"], \"size\": 2}, {\"rows\": [{\"widgets\": [{\"name\": \"Filter Bar\", \"widgetType\": \"filter-widget\", \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"klass\": \"card card-widget span12\", \"id\": \"49d78608-4e3d-3ff6-a40e-c6ff8d5ea7ab\", \"size\": 12}]}, {\"widgets\": [{\"name\": \"Histogram\", \"widgetType\": \"histogram-widget\", \"properties\": {}, \"isLoading\": false, \"offset\": 0, \"klass\": \"card card-widget span12\", \"id\": \"fa4138d0-4d39-0520-c2fb-d78e2bf195be\", \"size\": 12}]}, {\"widgets\": [{\"name\": \"HTML Results\", \"widgetType\": \"html-resultset-widget\", \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"klass\": \"card card-widget span12\", \"id\": \"fdbe917a-2d37-7990-4f42-025eea08cc77\", \"size\": 12}]}, {\"widgets\": []}], \"klass\": \"card card-home card-column span10\", \"drops\": [\"temp\"], \"size\": 10}], \"data_type\": \"separated\", \"collection\": {\"availableFacetFields\": [{\"isDynamic\": false, \"isId\": null, \"type\": \"long\", \"name\": \"_version_\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"string\", \"name\": \"expanded_url\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"long\", \"name\": \"in_reply_to_status_id\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"long\", \"name\": \"in_reply_to_user_id\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"string\", \"name\": \"media_url_https\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"tint\", \"name\": \"retweet_count\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"boolean\", \"name\": \"retweeted\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"lowercase\", \"name\": \"source\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"text_en\", \"name\": \"text\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"text_en\", \"name\": \"user_description\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"tint\", \"name\": \"user_friends_count\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"text_en\", \"name\": \"user_name\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"text_en\", \"name\": \"user_screen_name\"}, {\"isDynamic\": false, \"isId\": true, \"type\": \"string\", \"name\": \"id\"}], \"idField\": \"id\", \"name\": \"twitter_demo\", \"fields\": [{\"isDynamic\": false, \"isId\": null, \"type\": \"long\", \"name\": \"_version_\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"tdate\", \"name\": \"created_at\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"string\", \"name\": \"expanded_url\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"long\", \"name\": \"in_reply_to_status_id\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"long\", \"name\": \"in_reply_to_user_id\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"string\", \"name\": \"media_url_https\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"tint\", \"name\": \"retweet_count\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"boolean\", \"name\": \"retweeted\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"lowercase\", \"name\": \"source\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"text_en\", \"name\": \"text\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"text_en\", \"name\": \"user_description\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"tint\", \"name\": \"user_followers_count\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"tint\", \"name\": \"user_friends_count\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"lowercase\", \"name\": \"user_location\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"text_en\", \"name\": \"user_name\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"text_en\", \"name\": \"user_screen_name\"}, {\"isDynamic\": false, \"isId\": null, \"type\": \"tint\", \"name\": \"user_statuses_count\"}, {\"isDynamic\": false, \"isId\": true, \"type\": \"string\", \"name\": \"id\"}], \"facets\": [{\"widgetType\": \"histogram-widget\", \"id\": \"fa4138d0-4d39-0520-c2fb-d78e2bf195be\", \"field\": \"created_at\", \"label\": \"created_at\", \"type\": \"range\", \"properties\": {\"sort\": \"desc\", \"andUp\": false, \"end\": \"2014-02-25T21:00:00Z\", \"min\": \"2014-02-25T08:00:00Z\", \"max\": \"2014-02-25T21:00:00Z\", \"stacked\": false, \"gap\": \"+10MINUTES\", \"start\": \"2014-02-25T08:00:00Z\", \"limit\": 10, \"mincount\": 0, \"canRange\": true, \"isDate\": true}}, {\"widgetType\": \"pie-widget\", \"id\": \"1c69b68c-7b4d-8928-a0b4-58f17d4d1f39\", \"field\": \"user_location\", \"label\": \"user_location\", \"type\": \"field\", \"properties\": {\"sort\": \"desc\", \"andUp\": false, \"stacked\": false, \"limit\": \"20\", \"mincount\": 0, \"canRange\": false, \"isDate\": false}}, {\"widgetType\": \"facet-widget\", \"id\": \"f479bde4-e7e2-b835-45e9-da1faa424673\", \"field\": \"user_statuses_count\", \"label\": \"user_statuses_count\", \"type\": \"range\", \"properties\": {\"sort\": \"desc\", \"andUp\": false, \"end\": \"2500000\", \"max\": 2500000, \"stacked\": false, \"gap\": \"250000\", \"start\": 0, \"min\": 0, \"limit\": 10, \"mincount\": 0, \"canRange\": true, \"isDate\": false}}, {\"widgetType\": \"facet-widget\", \"id\": \"7be3eaf8-d94a-152d-646c-1461981381e6\", \"field\": \"user_followers_count\", \"label\": \"user_followers_count\", \"type\": \"range\", \"properties\": {\"sort\": \"desc\", \"andUp\": false, \"end\": \"9000000\", \"max\": 9000000, \"stacked\": false, \"gap\": \"900000\", \"start\": 0, \"min\": 0, \"limit\": 10, \"mincount\": 0, \"canRange\": true, \"isDate\": false}}], \"enabled\": true, \"label\": \"Twitter\", \"selectedDocument\": {}, \"template\": {\"extracode\": \"&lt;style type=&quot;text/css&quot;&gt;em {\\n font-weight: bold;\\n background-color: yellow;\\n}\\n.avatar {\\n margin: 10px;\\n}\\n.created {\\n margin-top: 10px;\\n color: #CCC;\\n}\\n.openTweet {\\n float: right;\\n margin: 10px;\\n}\\n&lt;/style&gt;\\n\\n&lt;script&gt;\\n&lt;/script&gt;\", \"rows\": 10, \"fieldsAttributes\": [{\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"_version_\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"created_at\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"expanded_url\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"in_reply_to_status_id\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"in_reply_to_user_id\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"media_url_https\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"retweet_count\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"retweeted\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"source\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"text\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"user_description\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"user_followers_count\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"user_friends_count\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"user_location\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"user_name\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"user_screen_name\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"user_statuses_count\"}, {\"sort\": {\"direction\": null}, \"isDynamic\": false, \"name\": \"id\"}], \"isGridLayout\": false, \"fieldsSelected\": [\"created_at\", \"retweet_count\", \"retweeted\", \"source\", \"text\", \"media_url_https\", \"in_reply_to_user_id\", \"in_reply_to_status_id\", \"expanded_url\", \"user_screen_name\", \"user_location\", \"user_name\"], \"showFieldList\": true, \"template\": \"\\n\\n<div class=\\\"row-fluid\\\">\\n <div class=\\\"row-fluid\\\">\\n <div class=\\\"row-fluid\\\">\\n <div class=\\\"span1\\\">\\n <img src=\\\"http://twitter.com/api/users/profile_image/{{user_screen_name}}\\\" class=\\\"avatar\\\">\\n </div>\\n <div class=\\\"span11\\\">\\n <b>{{user_name}}</b>\\n <br>\\n <a href=\\\"https://twitter.com/{{user_screen_name}}/status/{{id}}\\\" target=\\\"_blank\\\">\\n {{text}}\\n </a>\\n <br>\\n <div class=\\\"created\\\">{{#fromnow}}{{created_at}}{{/fromnow}}</div>\\n </div>\\n </div>\\n <br>\\n </div>\\n </div>\\n \\n \", \"highlighting\": [\"\"], \"properties\": {\"highlighting_enabled\": true}}, \"id\": 20000000}}"
}
},
{
Expand Down
Loading

0 comments on commit 1e8ea71

Please sign in to comment.