elastic-site-search 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +58 -0
  3. data/.gitignore +10 -0
  4. data/.travis.yml +13 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE.txt +201 -0
  7. data/NOTICE.txt +3 -0
  8. data/README.md +418 -0
  9. data/Rakefile +1 -0
  10. data/elastic-site-search.gemspec +26 -0
  11. data/lib/data/ca-bundle.crt +3554 -0
  12. data/lib/elastic/site-search.rb +9 -0
  13. data/lib/elastic/site-search/client.rb +527 -0
  14. data/lib/elastic/site-search/configuration.rb +67 -0
  15. data/lib/elastic/site-search/exceptions.rb +11 -0
  16. data/lib/elastic/site-search/ext/backport-uri.rb +33 -0
  17. data/lib/elastic/site-search/request.rb +156 -0
  18. data/lib/elastic/site-search/result_set.rb +84 -0
  19. data/lib/elastic/site-search/sso.rb +22 -0
  20. data/lib/elastic/site-search/version.rb +5 -0
  21. data/logo-site-search.png +0 -0
  22. data/spec/client_spec.rb +728 -0
  23. data/spec/configuration_spec.rb +37 -0
  24. data/spec/fixtures/vcr/analytics_autoselects.yml +57 -0
  25. data/spec/fixtures/vcr/analytics_autoselects_with_document_type.yml +57 -0
  26. data/spec/fixtures/vcr/analytics_autoselects_with_document_type_and_time_range.yml +57 -0
  27. data/spec/fixtures/vcr/analytics_autoselects_with_time_range.yml +57 -0
  28. data/spec/fixtures/vcr/analytics_clicks.yml +57 -0
  29. data/spec/fixtures/vcr/analytics_clicks_with_document_type.yml +57 -0
  30. data/spec/fixtures/vcr/analytics_clicks_with_document_type_and_time_range.yml +57 -0
  31. data/spec/fixtures/vcr/analytics_clicks_with_time_range.yml +57 -0
  32. data/spec/fixtures/vcr/analytics_searches.yml +57 -0
  33. data/spec/fixtures/vcr/analytics_searches_with_document_type_and_time_range.yml +57 -0
  34. data/spec/fixtures/vcr/analytics_searches_with_time_range.yml +57 -0
  35. data/spec/fixtures/vcr/analytics_searchs_with_document_type.yml +57 -0
  36. data/spec/fixtures/vcr/analytics_top_no_result_queries.yml +57 -0
  37. data/spec/fixtures/vcr/analytics_top_no_result_queries_paginated.yml +57 -0
  38. data/spec/fixtures/vcr/analytics_top_queries.yml +57 -0
  39. data/spec/fixtures/vcr/analytics_top_queries_paginated.yml +57 -0
  40. data/spec/fixtures/vcr/analytics_top_queries_too_large.yml +53 -0
  41. data/spec/fixtures/vcr/async_create_or_update_document_failure.yml +48 -0
  42. data/spec/fixtures/vcr/async_create_or_update_document_success.yml +52 -0
  43. data/spec/fixtures/vcr/bulk_create_documents.yml +52 -0
  44. data/spec/fixtures/vcr/bulk_create_or_update_documents_failure.yml +47 -0
  45. data/spec/fixtures/vcr/bulk_create_or_update_documents_success.yml +52 -0
  46. data/spec/fixtures/vcr/bulk_create_or_update_documents_verbose_failure.yml +47 -0
  47. data/spec/fixtures/vcr/bulk_create_or_update_documents_verbose_success.yml +52 -0
  48. data/spec/fixtures/vcr/bulk_destroy_documents.yml +47 -0
  49. data/spec/fixtures/vcr/crawl_url.yml +47 -0
  50. data/spec/fixtures/vcr/create_document.yml +52 -0
  51. data/spec/fixtures/vcr/create_document_type.yml +47 -0
  52. data/spec/fixtures/vcr/create_domain.yml +47 -0
  53. data/spec/fixtures/vcr/create_engine.yml +47 -0
  54. data/spec/fixtures/vcr/create_or_update_document_create.yml +51 -0
  55. data/spec/fixtures/vcr/create_or_update_document_update.yml +51 -0
  56. data/spec/fixtures/vcr/create_user.yml +47 -0
  57. data/spec/fixtures/vcr/destroy_document.yml +43 -0
  58. data/spec/fixtures/vcr/destroy_document_type.yml +43 -0
  59. data/spec/fixtures/vcr/destroy_domain.yml +43 -0
  60. data/spec/fixtures/vcr/destroy_engine.yml +43 -0
  61. data/spec/fixtures/vcr/destroy_non_existent_document_type.yml +45 -0
  62. data/spec/fixtures/vcr/document_receipts_multiple.yml +48 -0
  63. data/spec/fixtures/vcr/document_receipts_multiple_complete.yml +48 -0
  64. data/spec/fixtures/vcr/document_type_search.yml +63 -0
  65. data/spec/fixtures/vcr/document_type_search_pagination.yml +47 -0
  66. data/spec/fixtures/vcr/document_type_suggest.yml +52 -0
  67. data/spec/fixtures/vcr/document_type_suggest_pagination.yml +47 -0
  68. data/spec/fixtures/vcr/engine_search.yml +67 -0
  69. data/spec/fixtures/vcr/engine_search_facets.yml +164 -0
  70. data/spec/fixtures/vcr/engine_search_pagination.yml +47 -0
  71. data/spec/fixtures/vcr/engine_suggest.yml +55 -0
  72. data/spec/fixtures/vcr/engine_suggest_pagination.yml +47 -0
  73. data/spec/fixtures/vcr/find_document.yml +50 -0
  74. data/spec/fixtures/vcr/find_document_type.yml +47 -0
  75. data/spec/fixtures/vcr/find_domain.yml +47 -0
  76. data/spec/fixtures/vcr/find_domain_failure.yml +45 -0
  77. data/spec/fixtures/vcr/find_engine.yml +47 -0
  78. data/spec/fixtures/vcr/list_document_type.yml +47 -0
  79. data/spec/fixtures/vcr/list_documents.yml +71 -0
  80. data/spec/fixtures/vcr/list_documents_with_pagination.yml +71 -0
  81. data/spec/fixtures/vcr/list_domains.yml +47 -0
  82. data/spec/fixtures/vcr/list_engines.yml +48 -0
  83. data/spec/fixtures/vcr/list_users.yml +47 -0
  84. data/spec/fixtures/vcr/list_users_with_pagination.yml +47 -0
  85. data/spec/fixtures/vcr/log_clickthrough_failure.yml +45 -0
  86. data/spec/fixtures/vcr/log_clickthrough_success.yml +47 -0
  87. data/spec/fixtures/vcr/recrawl_domain_failure.yml +46 -0
  88. data/spec/fixtures/vcr/recrawl_domain_success.yml +47 -0
  89. data/spec/fixtures/vcr/show_user.yml +47 -0
  90. data/spec/fixtures/vcr/update_document.yml +50 -0
  91. data/spec/fixtures/vcr/update_document_unknown_field_failure.yml +48 -0
  92. data/spec/fixtures/vcr/update_documents_failure_non_existent_document.yml +47 -0
  93. data/spec/fixtures/vcr/update_documents_success.yml +47 -0
  94. data/spec/fixtures/vcr/users_client_secret_incorrect.yml +44 -0
  95. data/spec/fixtures/vcr/users_no_api_key.yml +44 -0
  96. data/spec/fixtures/vcr/users_no_client_id_or_secret.yml +45 -0
  97. data/spec/platform_spec.rb +95 -0
  98. data/spec/spec_helper.rb +27 -0
  99. data/spec/ssl_spec.rb +34 -0
  100. data/spec/sso_spec.rb +24 -0
  101. metadata +279 -0
@@ -0,0 +1,67 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://hello:@localhost:3000/api/v1/engines/site-search-api-example/search.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"q":"cat"}'
9
+ headers:
10
+ Accept:
11
+ - ! "*/*"
12
+ X-Swiftype-Client:
13
+ - elastic-app-search-ruby
14
+ X-Swiftype-Client-Version:
15
+ - 1.0.0
16
+ Content-Type:
17
+ - application/json
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ X-Ua-Compatible:
26
+ - IE=Edge
27
+ Etag:
28
+ - ! '"a456a5ea8dfad98108c0006d7487af40"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Set-Cookie:
32
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTA5YmQxYjE1YTQ2ZDkzZTM1MDZkYzJhNzA3NDg1NzFmBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRUDg5%2By7ZYCnHAAABSSIiJDJhJDEwJE1rNmZOdHA1cC9ZNVIuQU5sZFB2UWUGOwBU--58027e7ada6b13641007cd961c34df4ed196db48;
33
+ path=/; HttpOnly
34
+ X-Request-Id:
35
+ - ea4c09e7dbf6712aa9db1d795e577c38
36
+ X-Runtime:
37
+ - "0.220203"
38
+ Connection:
39
+ - close
40
+ Server:
41
+ - thin 1.5.0 codename Knife
42
+ body:
43
+ encoding: US-ASCII
44
+ string:
45
+ ! '{"records":{"videos":[{"external_id":"QH2-TGUlwu4","category_id":"23","caption":"For
46
+ PJ.\n\nCheck out Nyan Cat at http://nyan.cat/\nOfficial Nyan Cat Facebook:
47
+ http://www.facebook.com/NyanCatWorld\nNyan Cat on Twitter: https://twitter.com/nyannyancat\n\nNyan
48
+ Cat Store: http://nyancat.cat/store.html\n\nGIF by PRguitarman http://www.prguitarman.com/index.php?id=348\nSong
49
+ by Daniwell-P/Momone Momo UTAU http://momolabo.lolipop.jp/nyancatsong/Nyan/\n***used
50
+ with permission; I own neither***","channel_id":"UC3VHfy8e1jbDnT5TG2pjP1w","url":"http://www.youtube.com/watch?v=QH2-TGUlwu4","published_at":"2011-04-06T03:21:59Z","thumbnail_url":"https://i.ytimg.com/vi/QH2-TGUlwu4/mqdefault.jpg","title":"Nyan
51
+ Cat [original]","duration":217,"updated_at":"2013-09-12T21:28:13Z","category_name":"Comedy","like_count":711548,"view_count":93258193,"id":"523231ed2ed9605898000028","_score":1.1538672,"_type":"523231e62ed9605898000020","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{"title":"Nyan
52
+ <em>Cat</em> [original]","caption":"For PJ.\n\nCheck out Nyan <em>Cat</em>
53
+ at http://nyan.<em>cat</em>/\nOfficial Nyan <em>Cat</em> Facebook: http://www.facebook.com/Nyan<em>Cat</em>World\nNyan
54
+ <em>Cat</em> on Twitter: https://twitter.com/nyannyancat\n\nNyan <em>Cat</em>
55
+ Store: http://nyancat.<em>cat</em>/store.html\n\nGIF by PRguitarman http://www.prguitarman.com/index.php?id=348\nSong
56
+ by Daniwell-P/Momone"},"_explanation":null},{"external_id":"ik5sdwYZ01Q","category_id":"15","caption":"Best
57
+ Harlem Shake Ever. No Ads.","channel_id":"UCiTvufmbsDlYeZ9JOVtiYYQ","url":"http://www.youtube.com/watch?v=ik5sdwYZ01Q","published_at":"2013-02-20T02:37:53Z","thumbnail_url":"https://i.ytimg.com/vi/FHtvDA0W34I/mqdefault.jpg","title":"Grumpy
58
+ Cat Does The Harlem Shake (Ad Free)","duration":18,"updated_at":"2013-09-12T21:28:16Z","category_name":"Pets
59
+ & Animals","like_count":1014,"view_count":125939,"id":"523231f02ed960589800002c","_score":0.86540043,"_type":"523231e62ed9605898000020","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{"title":"Grumpy
60
+ <em>Cat</em> Does The Harlem Shake (Ad Free)"},"_explanation":null}],"channels":[{"external_id":"UC3VHfy8e1jbDnT5TG2pjP1w","title":"saraj00n","thumbnail_url":"http://i.ytimg.com/i/3VHfy8e1jbDnT5TG2pjP1w/mq1.jpg","updated_at":"2013-09-12T21:28:17Z","description":"Sara
61
+ Reihani/Slobs comedy. slobs.productions@gmail.com\n\nFor Nyan Cat inquiries,
62
+ contact: pr@prguitarman.com","subscriber_count":25729,"view_count":727472,"video_count":41,"url":"http://www.youtube.com/user/saraj00n","published_at":"2011-01-03T00:27:56Z","id":"51b92fa52ed960a84400025a","_score":0.8814321,"_type":"51b92f992ed960a84400024b","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{"description":"Sara
63
+ Reihani/Slobs comedy. slobs.productions@gmail.com\n\nFor Nyan <em>Cat</em>
64
+ inquiries, contact: pr@prguitarman.com"},"_explanation":null}]},"info":{"videos":{"query":"cat","current_page":1,"num_pages":1,"per_page":20,"total_result_count":2,"facets":{}},"channels":{"query":"cat","current_page":1,"num_pages":1,"per_page":20,"total_result_count":1,"facets":{}}},"errors":{}}'
65
+ http_version:
66
+ recorded_at: Thu, 12 Sep 2013 21:30:21 GMT
67
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,164 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://hello:@localhost:3000/api/v1/engines/site-search-api-example/search.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"q":null,"facets":{"videos":["category_id"]}}'
9
+ headers:
10
+ Accept:
11
+ - ! '*/*'
12
+ X-Swiftype-Client:
13
+ - elastic-app-search-ruby
14
+ X-Swiftype-Client-Version:
15
+ - 1.0.0
16
+ Content-Type:
17
+ - application/json
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ X-Ua-Compatible:
26
+ - IE=Edge
27
+ Etag:
28
+ - ! '"dc400de000085e97fdc8431f44f133a9"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Set-Cookie:
32
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTVkODUyZGQ4NzRkZjBiNDM5ZjE3YWQ2NjRlMTkwZTQzBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRUDg5%2By7ZYCnHAAABSSIiJDJhJDEwJE1rNmZOdHA1cC9ZNVIuQU5sZFB2UWUGOwBU--ef8207cbe7f92dfdb111a016c904b4e990a2bb1a;
33
+ path=/; HttpOnly
34
+ X-Request-Id:
35
+ - 9cb566ebf56f822f8bf3e0313e945d00
36
+ X-Runtime:
37
+ - '0.495633'
38
+ Connection:
39
+ - close
40
+ Server:
41
+ - thin 1.5.0 codename Knife
42
+ body:
43
+ encoding: US-ASCII
44
+ string: ! '{"records":{"videos":[{"external_id":"foobar","title":"new document","updated_at":"2013-09-12T22:27:53Z","id":"52323fe92ed960589800003a","_score":1.0,"_type":"523231e62ed9605898000020","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"4r7wHMg5Yjg","category_id":"23","caption":"The
45
+ Crazy Nastyass Honey Badger (original narration by Randall)\n\nEnter the Honey
46
+ Badger Doll Contest for a chance to win fabulous crazyass prizes: https://www.facebook.com/randallshoneybadger/app_228910107186452
47
+ !!!\n\n*GET THE TALKING NASTYASS HONEY BADGER DOLL, STUPID: http://randallshoneybadger.com/honey-badger-products/\n\n*Get
48
+ Randall''s book now!: http://bit.ly/wW79nq ***VOTE HONEY BADGER to learn more
49
+ visit: http://bit.ly/PiuHIi \n\n*VISIT: http://bit.ly/wkrWiY *FOR THE HOT
50
+ APP\n\n\nSpecial thanks to Colleen and Keith Begg for their extensive work
51
+ and care--to find out more about the filmmakers and what they do, please visit:
52
+ http://bit.ly/JSgPWr\n\nThere is no other animal in the kingdom of all animals,
53
+ as fearless as the crazyass Honey Badger. Nasty as hell, it eats practically
54
+ whatever it wants. Randall is disgusted. To learn more about the Honey Badger,
55
+ please visit. \nwork: http://www.nationalgeographic.com/\n\nThere is no other
56
+ animal in the kingdom of all animals, as fearless as the crazyass Honey Badger. Nasty
57
+ as hell, it eats whatever it wants and don''t give a shit. \n\nGet the Talking
58
+ Nastyass Honey Badger Doll, stupid: http://randallshoneybadger.com/honey-badger-products\n\nLike
59
+ the Honey Badger on Facebook: https://www.facebook.com/randallshoneybadger\n\nFollow
60
+ me on Twitter: https://twitter.com/randallsanimals\n\nRead the Honey Badger
61
+ book now: http://tinyurl.com/afo92xv\n\nVisit http://bit.ly/wkrWiY for the
62
+ honey badger app","channel_id":"UCdYazIu26zP1VlU7vcwb-5g","url":"http://www.youtube.com/watch?v=4r7wHMg5Yjg","published_at":"2011-01-18T11:51:47Z","thumbnail_url":"https://i.ytimg.com/vi/4r7wHMg5Yjg/mqdefault.jpg","title":"The
63
+ Crazy Nastyass Honey Badger (original narration by Randall)","duration":201,"updated_at":"2013-09-12T22:42:45Z","category_name":"Comedy","like_count":265458,"view_count":57549733,"id":"523231e72ed9605898000023","_score":1.0,"_type":"523231e62ed9605898000020","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"tags":["PSY","\uc2f8\uc774","\uac15\ub0a8\uc2a4\ud0c0\uc77c","\ubba4\uc9c1\ube44\ub514\uc624","Music
64
+ Video","Gangnam Style","KOREAN SINGER","KPOP","KOERAN WAVE","PSY 6\u7532","6th
65
+ Studio Album","\uc2f8\uc7746\uc9d1","\uc721\uac11","YG Family","YG Entertainment"],"external_id":"9bZkp7q19f0","category_id":"10","caption":"PSY
66
+ - Gangnam Style (\uac15\ub0a8\uc2a4\ud0c0\uc77c) \n\u25b6 NOW available on
67
+ iTunes: http://Smarturl.it/psygangnam\n\u25b6 Official PSY Online Store US
68
+ & International : http://psy.shop.bravadousa.com/\n\u25b6 About PSY from YG
69
+ Ent.: http://smarturl.it/YGfamilyAboutPSY\n\u25b6 PSY''s Products on eBay:
70
+ http://stores.ebay.com/ygentertainment\n\u25b6 YG-eShop: http://www.ygeshop.com\n
71
+ \nFor More Information @\nhttp://www.facebook.com/officialpsy\nhttp://twitter.com/psy_oppa\nhttp://twitter.com/ygent_official\nhttp://me2day.net/psyfive\nhttp://www.psypark.com\nApp
72
+ Store: http://goo.gl/l9TU6\nGoogle Play: http://goo.gl/UiEn1\n\n\u00a9 YG
73
+ Entertainment Inc. All rights reserved.","url":"http://www.youtube.com/watch?v=9bZkp7q19f0","channel_id":"UCrDkAvwZum-UTjHmzDI2iIw","published_at":"2012-07-15T07:46:32Z","thumbnail_url":"https://i.ytimg.com/vi/9bZkp7q19f0/mqdefault.jpg","title":"PSY
74
+ - GANGNAM STYLE (\uac15\ub0a8\uc2a4\ud0c0\uc77c) M/V","duration":253,"updated_at":"2013-09-12T22:42:47Z","category_name":"Music","like_count":7095431,"view_count":1360426986,"id":"523231e82ed9605898000024","_score":1.0,"_type":"523231e62ed9605898000020","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"C8Wu3Bps9ic","category_id":"23","caption":"Swedish
75
+ Meatballs. They are good for you.\r\n\r\nLingonsylt are for Swedish nationalists.
76
+ WE DONT LIKE THAT\r\n\r\n\r\nEnjoy.\r\n\r\n\r\n( Greyish sometimes to compensate
77
+ for bad lighting, deal with it haters )\r\n\r\nLove us on Facebook http://www.facebook.com/pages/Regular-Ordinary-Swedish-Meal-Time/166173596761030
78
+ \r\nand Twitter: http://twitter.com/SwedishMealTime","channel_id":"UCfLGZs8bSDbkNJjCRIE7NSg","url":"http://www.youtube.com/watch?v=C8Wu3Bps9ic","published_at":"2011-01-13T21:48:04Z","thumbnail_url":"https://i.ytimg.com/vi/C8Wu3Bps9ic/mqdefault.jpg","title":"Meatball
79
+ Massacre - Regular Ordinary Swedish Meal Time","duration":199,"updated_at":"2013-09-12T22:42:48Z","category_name":"Comedy","like_count":30139,"view_count":5565896,"id":"523231ea2ed9605898000025","_score":1.0,"_type":"523231e62ed9605898000020","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"dFs9WO2B8uI","category_id":"25","caption":"In
80
+ this new RSA Animate, renowned psychiatrist and writer Iain McGilchrist explains
81
+ how our ''divided brain'' has profoundly altered human behaviour, culture
82
+ and society. \n\nTaken from a lecture given by Iain McGilchrist as part of
83
+ the RSA''s free public events programme. To view the full lecture, go to http://www.youtube.com/watch?v=SbUHxC4wiWk.
84
+ The RSA is a charity dedicated to driving social progress and spreading world-changing
85
+ ideas. For more information about our varied work, visit http://www.thersa.org.
86
+ \n\nLike the RSA on Facebook: http://www.facebook.com/thersaorg\nBecome a
87
+ Fellow: http://www.thersa.org/fellowship \nAttend a live event: http://www.thersa.org/events\nSupport
88
+ us: http://www.thersa.org/support-the-rsa","channel_id":"UCvhsiQGy_zcNCiSbeXEjhLg","url":"http://www.youtube.com/watch?v=dFs9WO2B8uI","published_at":"2012-07-15T07:46:32Z","thumbnail_url":"https://i.ytimg.com/vi/dFs9WO2B8uI/mqdefault.jpg","title":"RSA
89
+ Animate - The Divided Brain","duration":708,"updated_at":"2013-09-12T22:42:55Z","category_name":"News
90
+ & Politics","like_count":11993,"view_count":1118857,"id":"523231ef2ed9605898000029","_score":1.0,"_type":"523231e62ed9605898000020","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"dMH0bHeiRNg","category_id":"23","caption":"For
91
+ more visit http://www.mightaswelldance.com","channel_id":"UC5B9H4l2vtgo7cAoExcFh-w","url":"http://www.youtube.com/watch?v=dMH0bHeiRNg","published_at":"2006-04-06T21:30:53Z","thumbnail_url":"https://i.ytimg.com/vi/dMH0bHeiRNg/mqdefault.jpg","title":"Evolution
92
+ of Dance - By Judson Laipply","duration":360,"updated_at":"2013-09-12T22:42:55Z","category_name":"Comedy","like_count":927235,"view_count":210433484,"id":"523231ef2ed960589800002a","_score":1.0,"_type":"523231e62ed9605898000020","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"dWGc8JAWWj0","category_id":"2","caption":"SP
93
+ 4449 #1 most viewed train video Daylight Steam Engine with Casper Mountain
94
+ passenger car coming from Albany, Oregon going to Portland, Oregon The World''s
95
+ Most Famous Steam Train Southern Pacific steam locomotive no. 4449 known as
96
+ the \"Daylight\" Nikon L5 (If you like my videos, rate, comment and subscribe
97
+ to my channel)\nDon''t forget to SUBSCRIBE!\nErvans Trains http://www.youtube.com/user/ervans","channel_id":"UCQdo-z5pPkAjJONxsvXESXA","url":"http://www.youtube.com/watch?v=dWGc8JAWWj0","published_at":"2007-04-18T00:49:21Z","thumbnail_url":"https://i.ytimg.com/vi/dWGc8JAWWj0/mqdefault.jpg","title":"(#1
98
+ most viewed train) SP 4449 crossing at Roberts, Oregon","duration":50,"updated_at":"2013-09-12T22:42:57Z","category_name":"Autos
99
+ & Vehicles","like_count":7117,"view_count":22213068,"id":"523231f02ed960589800002b","_score":1.0,"_type":"523231e62ed9605898000020","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"FHtvDA0W34I","category_id":"28","caption":"Song:
100
+ http://smarturl.it/tafreespacedout\n\nAfter flying to an altitude of 39,045
101
+ meters (128,100 feet) in a helium-filled balloon, Felix Baumgartner completed
102
+ a record breaking jump for the ages from the edge of space, exactly 65 years
103
+ after Chuck Yeager first broke the sound barrier flying in an experimental
104
+ rocket-powered airplane. Felix reached a maximum of speed of 1,357.6 km/h
105
+ or 843.6 mph(Mach 1.25) through the near vacuum of the stratosphere before
106
+ being slowed by the atmosphere later during his 4:20 minute long freefall.
107
+ The 43-year-old Austrian skydiving expert also broke two other world records
108
+ (highest freefall, highest manned balloon flight), leaving the one for the
109
+ longest freefall to project mentor Col. Joe Kittinger.\n\nWatch the Full Recap:
110
+ http://www.youtube.com/watch?v=dOoHArAzdug\n\nhttp://www.redbullstratos.com\n___________________________________________________________\n\nExperience
111
+ the world of Red Bull like you have never seen it before. With the best action
112
+ sports clips on the web and YouTube exclusive series, prepare for your \"stoke
113
+ factor\" to be at an all time high.\n\nRed Bull on Facebook: http://win.gs/redbullfb\n\nRed
114
+ Bull on Twitter: http://win.gs/redbulltwitter\n\nSubscribe to Red Bull on
115
+ Youtube: http://www.youtube.com/subscription_center?add_user=redbull","channel_id":"UCblfuW_4rakIf2h6aqANefA","url":"http://www.youtube.com/watch?v=FHtvDA0W34I","published_at":"2012-10-15T00:06:53Z","thumbnail_url":"https://i.ytimg.com/vi/FHtvDA0W34I/mqdefault.jpg","title":"Felix
116
+ Baumgartner''s supersonic freefall from 128k'' - Mission Highlights","duration":91,"updated_at":"2013-09-12T22:42:50Z","category_name":"Science
117
+ & Technology","like_count":127463,"view_count":32874417,"id":"523231eb2ed9605898000026","_score":1.0,"_type":"523231e62ed9605898000020","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"FtX8nswnUKU","category_id":"15","caption":"http://www.facebook.com/pages/Kittens-Inspired-by-Kittens/49930012799","channel_id":"UC0c2TaeQY5VRMltq5Z2TQMA","url":"http://www.youtube.com/watch?v=FtX8nswnUKU","published_at":"2008-09-01T14:25:17Z","thumbnail_url":"https://i.ytimg.com/vi/FtX8nswnUKU/mqdefault.jpg","title":"kittens
118
+ inspired by kittens","duration":92,"updated_at":"2013-09-12T22:42:51Z","category_name":"Pets
119
+ & Animals","like_count":47388,"view_count":17228767,"id":"523231eb2ed9605898000027","_score":1.0,"_type":"523231e62ed9605898000020","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"QH2-TGUlwu4","category_id":"23","caption":"For
120
+ PJ.\n\nCheck out Nyan Cat at http://nyan.cat/\nOfficial Nyan Cat Facebook:
121
+ http://www.facebook.com/NyanCatWorld\nNyan Cat on Twitter: https://twitter.com/nyannyancat\n\nNyan
122
+ Cat Store: http://nyancat.cat/store.html\n\nGIF by PRguitarman http://www.prguitarman.com/index.php?id=348\nSong
123
+ by Daniwell-P/Momone Momo UTAU http://momolabo.lolipop.jp/nyancatsong/Nyan/\n***used
124
+ with permission; I own neither***","channel_id":"UC3VHfy8e1jbDnT5TG2pjP1w","url":"http://www.youtube.com/watch?v=QH2-TGUlwu4","published_at":"2011-04-06T03:21:59Z","thumbnail_url":"https://i.ytimg.com/vi/QH2-TGUlwu4/mqdefault.jpg","title":"Nyan
125
+ Cat [original]","duration":217,"updated_at":"2013-09-12T22:42:53Z","category_name":"Comedy","like_count":711548,"view_count":93258193,"id":"523231ed2ed9605898000028","_score":1.0,"_type":"523231e62ed9605898000020","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"tags":["Glass","Google
126
+ Glass","Project Glass","Glass video","google","glassesgoogle","goggles","if
127
+ i had glass","Glass Explorer","Glass Explorers","glass vid","glass video","ok
128
+ ..."],"external_id":"v1uyQZNg2vE","category_id":"28","caption":"Want to see
129
+ how Glass actually feels?...","url":"http://www.youtube.com/watch?v=v1uyQZNg2vE","channel_id":"UCK8sQmJBp8GCxrOtXWBpyEA","published_at":"2013-02-20T10:47:18Z","thumbnail_url":"https://i.ytimg.com/vi/v1uyQZNg2vE/mqdefault.jpg","title":"How
130
+ It Feels [through Glass]","duration":136,"updated_at":"2013-09-12T22:42:58Z","category_name":"Science
131
+ &amp; Technology","like_count":75952,"view_count":14599202,"id":"523231f12ed960589800002e","_score":1.0,"_type":"523231e62ed9605898000020","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"ik5sdwYZ01Q","category_id":"15","caption":"Best
132
+ Harlem Shake Ever. No Ads.","channel_id":"UCiTvufmbsDlYeZ9JOVtiYYQ","url":"http://www.youtube.com/watch?v=ik5sdwYZ01Q","published_at":"2013-02-20T02:37:53Z","thumbnail_url":"https://i.ytimg.com/vi/FHtvDA0W34I/mqdefault.jpg","title":"Grumpy
133
+ Cat Does The Harlem Shake (Ad Free)","duration":18,"updated_at":"2013-09-12T22:42:57Z","category_name":"Pets
134
+ & Animals","like_count":1014,"view_count":125939,"id":"523231f02ed960589800002c","_score":1.0,"_type":"523231e62ed9605898000020","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"pITuOcGgpBs","category_id":"22","caption":"","channel_id":"UCPrFOf5ObdBHfNs5BuO-vPQ","url":"http://www.youtube.com/watch?v=pITuOcGgpBs","published_at":"2012-05-08T09:03:17Z","thumbnail_url":"https://i.ytimg.com/vi/pITuOcGgpBs/mqdefault.jpg","title":"Swiftype
135
+ Demo","duration":110,"updated_at":"2013-09-12T22:42:57Z","category_name":"People
136
+ & Blogs","like_count":27,"view_count":12865,"id":"523231f02ed960589800002d","_score":1.0,"_type":"523231e62ed9605898000020","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"INscMGmhmX4","title":"hi","thumbnail_url":"https://i.ytimg.com/vi/INscMGmhmX4/mqdefault.jpg","updated_at":"2013-09-12T22:57:05Z","category_name":"Pets
137
+ &amp; Animals","url":"http://www.youtube.com/watch?v=v1uyQZNg2vE","channel_id":"UCTzVrd9ExsI3Zgnlh3_btLg","id":"5232410d2ed960589800003c","_score":1.0,"_type":"523231e62ed9605898000020","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"XfY9Dsg_DZk","title":"bye","thumbnail_url":"https://i.ytimg.com/vi/XfY9Dsg_DZk/mqdefault.jpg","updated_at":"2013-09-12T22:57:05Z","category_name":"Pets
138
+ &amp; Animals","url":"http://www.youtube.com/watch?v=XfY9Dsg_DZk","channel_id":"UC5VA5j05FjETg-iLekcyiBw","id":"5232410d2ed960589800003d","_score":1.0,"_type":"523231e62ed9605898000020","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null}],"channels":[{"external_id":"UC0c2TaeQY5VRMltq5Z2TQMA","title":"blakekelly0","thumbnail_url":"http://i.ytimg.com/i/0c2TaeQY5VRMltq5Z2TQMA/mq1.jpg","updated_at":"2013-09-12T22:42:58Z","description":"my
139
+ kids are awesome","subscriber_count":3371,"view_count":381741,"video_count":26,"url":"http://www.youtube.com/user/redbull","published_at":"2007-12-21T13:03:48Z","id":"51b92fa52ed960a844000259","_score":1.0,"_type":"51b92f992ed960a84400024b","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"UC3VHfy8e1jbDnT5TG2pjP1w","title":"saraj00n","thumbnail_url":"http://i.ytimg.com/i/3VHfy8e1jbDnT5TG2pjP1w/mq1.jpg","updated_at":"2013-09-12T22:42:58Z","description":"Sara
140
+ Reihani/Slobs comedy. slobs.productions@gmail.com\n\nFor Nyan Cat inquiries,
141
+ contact: pr@prguitarman.com","subscriber_count":25729,"view_count":727472,"video_count":41,"url":"http://www.youtube.com/user/saraj00n","published_at":"2011-01-03T00:27:56Z","id":"51b92fa52ed960a84400025a","_score":1.0,"_type":"51b92f992ed960a84400024b","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"UCQdo-z5pPkAjJONxsvXESXA","title":"ervans","thumbnail_url":"http://i.ytimg.com/i/Qdo-z5pPkAjJONxsvXESXA/mq1.jpg","updated_at":"2013-09-12T22:42:59Z","description":"All
142
+ of my Videos are original short films I recorded, most are train videos. Very
143
+ little editing. If you like my videos. (Rate, Comment and Subscribe).","subscriber_count":41464,"view_count":1787374,"video_count":191,"url":"http://www.youtube.com/user/ervans","published_at":"2006-04-26T18:08:07Z","id":"51b92fa62ed960a84400025e","_score":1.0,"_type":"51b92f992ed960a84400024b","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"UCblfuW_4rakIf2h6aqANefA","title":"redbull","thumbnail_url":"http://i.ytimg.com/i/blfuW_4rakIf2h6aqANefA/mq1.jpg","updated_at":"2013-09-12T22:42:59Z","description":"Experience
144
+ the world of Red Bull like you have never seen it before. With the best action
145
+ sports clips on the web and YouTube exclusive series, prepare for your \"stoke
146
+ factor\" to be at an all time high.","subscriber_count":133455,"view_count":2211991,"video_count":201,"url":"http://www.youtube.com/user/redbull","published_at":"2006-09-23T03:44:21Z","id":"51b92fa62ed960a84400025f","_score":1.0,"_type":"51b92f992ed960a84400024b","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"UCdYazIu26zP1VlU7vcwb-5g","title":"czg123","thumbnail_url":"http://i.ytimg.com/i/dYazIu26zP1VlU7vcwb-5g/mq1.jpg","updated_at":"2013-09-12T22:42:59Z","description":"Welcome
147
+ to Randall''s Honey Badger Channel!\r\n\r\nSubscribe now for even more of
148
+ the Honey Badger''s Crazy Nastyass Animal videos, stupid!\r\n\r\nFor inquiries,
149
+ contact ThruLine Entertainment: danny@thrulinela.com","subscriber_count":133455,"view_count":2211991,"video_count":201,"url":"http://www.youtube.com/user/czg123","published_at":"2011-01-06T20:20:03Z","id":"51b92fa62ed960a844000260","_score":1.0,"_type":"51b92f992ed960a84400024b","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"UC5B9H4l2vtgo7cAoExcFh-w","title":"judsonlaipply","thumbnail_url":"http://i.ytimg.com/i/5B9H4l2vtgo7cAoExcFh-w/mq1.jpg","updated_at":"2013-09-12T22:42:59Z","description":"The
150
+ Evolution of Dance is one of the most watched videos of all time on YouTube.
151
+ \n\nJudson Laipply, creator and performer of The Evolution of Dance, is an
152
+ inspirational comedian, author and professional speaker who makes people laugh
153
+ and think.\n\nLearn more at http://www.MightasWellDance.com","subscriber_count":64227,"view_count":3181464,"video_count":5,"url":"http://www.youtube.com/user/judsonlaipply","published_at":"2006-03-23T15:20:45Z","id":"51b92fa52ed960a84400025b","_score":1.0,"_type":"51b92f992ed960a84400024b","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"UCK8sQmJBp8GCxrOtXWBpyEA","title":"Google","thumbnail_url":"https://lh4.googleusercontent.com/-v0soe-ievYE/AAAAAAAAAAI/AAAAAAAAAAA/OixOH_h84Po/s88-c-k/photo.jpg","updated_at":"2013-09-12T22:42:59Z","description":"Google''s
154
+ official YouTube channel.","subscriber_count":1270202,"view_count":33428669,"video_count":1546,"url":"http://www.youtube.com/user/Google","published_at":"2005-09-18T22:37:10Z","id":"51b92fa62ed960a84400025c","_score":1.0,"_type":"51b92f992ed960a84400024b","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"UCPrFOf5ObdBHfNs5BuO-vPQ","title":"swiftype","thumbnail_url":"http://i.ytimg.com/i/PrFOf5ObdBHfNs5BuO-vPQ/mq1.jpg","updated_at":"2013-09-12T22:42:59Z","description":"","subscriber_count":5,"view_count":309,"video_count":6,"url":"http://www.youtube.com/user/swiftype","published_at":"2011-11-26T00:17:40Z","id":"51b92fa62ed960a84400025d","_score":1.0,"_type":"51b92f992ed960a84400024b","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"UCfLGZs8bSDbkNJjCRIE7NSg","title":"SwedishMealTime","thumbnail_url":"http://i.ytimg.com/i/fLGZs8bSDbkNJjCRIE7NSg/mq1.jpg","updated_at":"2013-09-12T22:42:59Z","description":"For
155
+ Mayo in time.","subscriber_count":455337,"view_count":6328566,"video_count":36,"url":"http://www.youtube.com/user/SwedishMealTime","published_at":"2011-01-06T20:20:03Z","id":"51b92fa72ed960a844000261","_score":1.0,"_type":"51b92f992ed960a84400024b","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"UCiTvufmbsDlYeZ9JOVtiYYQ","title":"Joel
156
+ Zimmerebner","thumbnail_url":"http://i.ytimg.com/i/blfuW_4rakIf2h6aqANefA/mq1.jpg","updated_at":"2013-09-12T22:42:59Z","description":"","subscriber_count":124,"view_count":350,"video_count":3,"url":"http://www.youtube.com/user/DwnWthVwls","published_at":"2006-10-20T04:21:40Z","id":"51b92fa72ed960a844000262","_score":1.0,"_type":"51b92f992ed960a84400024b","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"UCrDkAvwZum-UTjHmzDI2iIw","title":"officialpsy","thumbnail_url":"http://i.ytimg.com/i/rDkAvwZum-UTjHmzDI2iIw/mq1.jpg","updated_at":"2013-09-12T22:42:59Z","description":"PSY
157
+ Official YouTube Channel","subscriber_count":3060443,"view_count":35989504,"video_count":47,"url":"http://www.youtube.com/user/officialpsy","published_at":"2010-10-04T02:50:53Z","id":"51b92fa72ed960a844000263","_score":1.0,"_type":"51b92f992ed960a84400024b","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null},{"external_id":"UCvhsiQGy_zcNCiSbeXEjhLg","title":"theRSAorg","thumbnail_url":"http://i.ytimg.com/i/vhsiQGy_zcNCiSbeXEjhLg/mq1.jpg","updated_at":"2013-09-12T22:43:01Z","description":"The
158
+ RSA: meeting 21st century challenges by showcasing ideas, undertaking innovative
159
+ research and building civic capacity around the world.\r\n \r\nTo learn more
160
+ about the RSA, visit: thersa.org\r\n\r\nOur events are made possible with
161
+ the support of our Fellowship. Support us by donating or applying to bec","subscriber_count":243017,"view_count":2434953,"video_count":557,"url":"http://www.youtube.com/user/theRSAorg","published_at":"2009-08-06T10:21:23Z","id":"51b92fa92ed960a844000264","_score":1.0,"_type":"51b92f992ed960a84400024b","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{},"_explanation":null}]},"info":{"videos":{"query":"","current_page":1,"num_pages":1,"per_page":20,"total_result_count":15,"facets":{"category_id":{"23":4,"28":2,"15":2,"25":1,"22":1,"2":1,"10":1}}},"channels":{"query":"","current_page":1,"num_pages":1,"per_page":20,"total_result_count":12,"facets":{}}},"errors":{}}'
162
+ http_version:
163
+ recorded_at: Fri, 13 Sep 2013 23:30:14 GMT
164
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://hello:@localhost:3000/api/v1/engines/site-search-api-example/search.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"q":"cat","page":2}'
9
+ headers:
10
+ Accept:
11
+ - ! "*/*"
12
+ X-Swiftype-Client:
13
+ - elastic-app-search-ruby
14
+ X-Swiftype-Client-Version:
15
+ - 1.0.0
16
+ Content-Type:
17
+ - application/json
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ X-Ua-Compatible:
26
+ - IE=Edge
27
+ Etag:
28
+ - ! '"b812398f012ce5e89b43bdc9463d5d22"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Set-Cookie:
32
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWI0MmIwZDE1Yjk4NzBmMDQxZjc2Nzg4ZGZkMmIxMWJmBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRUDg5%2By7ZYCnHAAABSSIiJDJhJDEwJE1rNmZOdHA1cC9ZNVIuQU5sZFB2UWUGOwBU--66bff87ad0a7a13a5e8b9349a27325d99a76c475;
33
+ path=/; HttpOnly
34
+ X-Request-Id:
35
+ - 2342cdc2f23a5433ff1d7d0efbaad487
36
+ X-Runtime:
37
+ - "0.190687"
38
+ Connection:
39
+ - close
40
+ Server:
41
+ - thin 1.5.0 codename Knife
42
+ body:
43
+ encoding: US-ASCII
44
+ string: ! '{"records":{"videos":[],"channels":[]},"info":{"videos":{"query":"cat","current_page":2,"num_pages":1,"per_page":20,"total_result_count":2,"facets":{}},"channels":{"query":"cat","current_page":2,"num_pages":1,"per_page":20,"total_result_count":1,"facets":{}}},"errors":{}}'
45
+ http_version:
46
+ recorded_at: Thu, 12 Sep 2013 21:30:20 GMT
47
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://hello:@localhost:3000/api/v1/engines/site-search-api-example/suggest.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"q":"goo"}'
9
+ headers:
10
+ Accept:
11
+ - ! "*/*"
12
+ X-Swiftype-Client:
13
+ - elastic-app-search-ruby
14
+ X-Swiftype-Client-Version:
15
+ - 1.0.0
16
+ Content-Type:
17
+ - application/json
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ X-Ua-Compatible:
26
+ - IE=Edge
27
+ Etag:
28
+ - ! '"2b5f9a0b62726b11d58fbf575b2bd091"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Set-Cookie:
32
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTk3OTA4YmM3OTZkYzY3ZGM0NjEyNzAzNDAwZDBhZjI0BjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRUDg5%2By7ZYCnHAAABSSIiJDJhJDEwJE1rNmZOdHA1cC9ZNVIuQU5sZFB2UWUGOwBU--aafd35e3a59275e90d09834629db34abb630a0c0;
33
+ path=/; HttpOnly
34
+ X-Request-Id:
35
+ - 379ce36a1ff3192e2922fba8a45267b1
36
+ X-Runtime:
37
+ - "0.079746"
38
+ Connection:
39
+ - close
40
+ Server:
41
+ - thin 1.5.0 codename Knife
42
+ body:
43
+ encoding: US-ASCII
44
+ string:
45
+ ! '{"record_count":2,"records":{"videos":[{"tags":["Glass","Google Glass","Project
46
+ Glass","Glass video","google","glassesgoogle","goggles","if i had glass","Glass
47
+ Explorer","Glass Explorers","glass vid","glass video","ok ..."],"external_id":"v1uyQZNg2vE","category_id":"28","url":"http://www.youtube.com/watch?v=v1uyQZNg2vE","channel_id":"UCK8sQmJBp8GCxrOtXWBpyEA","published_at":"2013-02-20T10:47:18Z","thumbnail_url":"https://i.ytimg.com/vi/v1uyQZNg2vE/mqdefault.jpg","title":"How
48
+ It Feels [through Glass]","duration":136,"updated_at":"2013-09-12T21:28:17Z","category_name":"Science
49
+ &amp; Technology","like_count":75952,"view_count":14599202,"id":"523231f12ed960589800002e","_score":0.6250393,"_type":"523231e62ed9605898000020","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{"tags":"<em>Google</em>
50
+ Glass"},"_explanation":null}],"channels":[{"external_id":"UCK8sQmJBp8GCxrOtXWBpyEA","title":"Google","thumbnail_url":"https://lh4.googleusercontent.com/-v0soe-ievYE/AAAAAAAAAAI/AAAAAAAAAAA/OixOH_h84Po/s88-c-k/photo.jpg","updated_at":"2013-09-12T21:28:17Z","description":"Google''s
51
+ official YouTube channel.","subscriber_count":1270202,"view_count":33428669,"video_count":1546,"url":"http://www.youtube.com/user/Google","published_at":"2005-09-18T22:37:10Z","id":"51b92fa62ed960a84400025c","_score":2.3571708,"_type":"51b92f992ed960a84400024b","_index":"51b92f982ed960a844000248","_version":null,"sort":null,"highlight":{"title":"<em>Google</em>","description":"<em>Google''s</em>
52
+ official YouTube channel."},"_explanation":null}]},"info":{"videos":{"query":"goo","current_page":1,"num_pages":1,"per_page":10,"total_result_count":1},"channels":{"query":"goo","current_page":1,"num_pages":1,"per_page":10,"total_result_count":1}},"errors":{}}'
53
+ http_version:
54
+ recorded_at: Thu, 12 Sep 2013 21:30:21 GMT
55
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://hello:@localhost:3000/api/v1/engines/site-search-api-example/suggest.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"q":"goo","page":2}'
9
+ headers:
10
+ Accept:
11
+ - ! "*/*"
12
+ X-Swiftype-Client:
13
+ - elastic-app-search-ruby
14
+ X-Swiftype-Client-Version:
15
+ - 1.0.0
16
+ Content-Type:
17
+ - application/json
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ X-Ua-Compatible:
26
+ - IE=Edge
27
+ Etag:
28
+ - ! '"3808268d101ef1017e4abf36ab55aa2e"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Set-Cookie:
32
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWQyZmJkMTcyMTEwN2U0ZDcwNjZjOTI4MTMwMGI5Y2I4BjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRUDg5%2By7ZYCnHAAABSSIiJDJhJDEwJE1rNmZOdHA1cC9ZNVIuQU5sZFB2UWUGOwBU--21e3ec1874607815193e8c7793a3e9974144075b;
33
+ path=/; HttpOnly
34
+ X-Request-Id:
35
+ - 04b206c0beb9fb36b8ea6f8109c61dd7
36
+ X-Runtime:
37
+ - "0.183618"
38
+ Connection:
39
+ - close
40
+ Server:
41
+ - thin 1.5.0 codename Knife
42
+ body:
43
+ encoding: US-ASCII
44
+ string: ! '{"record_count":0,"records":{"videos":[],"channels":[]},"info":{"videos":{"query":"goo","current_page":2,"num_pages":1,"per_page":10,"total_result_count":1},"channels":{"query":"goo","current_page":2,"num_pages":1,"per_page":10,"total_result_count":1}},"errors":{}}'
45
+ http_version:
46
+ recorded_at: Thu, 12 Sep 2013 21:30:21 GMT
47
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://hello:@localhost:3000/api/v1/engines/site-search-api-example/document_types/videos/documents/FtX8nswnUKU.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept:
11
+ - ! "*/*"
12
+ X-Swiftype-Client:
13
+ - elastic-app-search-ruby
14
+ X-Swiftype-Client-Version:
15
+ - 1.0.0
16
+ Content-Type:
17
+ - application/json
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ X-Ua-Compatible:
26
+ - IE=Edge
27
+ Etag:
28
+ - ! '"c589a7e58252eb4b44fc53be90e8785e"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Set-Cookie:
32
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTAzODA2YzIxZGVhM2IwMTUyZWI3ODRiMDI5ZjVmOGZjBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRUDg5%2By7ZYCnHAAABSSIiJDJhJDEwJE1rNmZOdHA1cC9ZNVIuQU5sZFB2UWUGOwBU--b6dd76eda13f42b331847ee3b70a5d16ba2e3155;
33
+ path=/; HttpOnly
34
+ X-Request-Id:
35
+ - fb0984f666b77726158616bbeb5638c2
36
+ X-Runtime:
37
+ - "0.034305"
38
+ Connection:
39
+ - close
40
+ Server:
41
+ - thin 1.5.0 codename Knife
42
+ body:
43
+ encoding: US-ASCII
44
+ string:
45
+ ! '{"external_id":"FtX8nswnUKU","engine_id":"51b92f982ed960a844000248","document_type_id":"523231e62ed9605898000020","id":"523231eb2ed9605898000027","_id":"523231eb2ed9605898000027","updated_at":"2013-09-12T22:42:51Z","url":"http://www.youtube.com/watch?v=FtX8nswnUKU","thumbnail_url":"https://i.ytimg.com/vi/FtX8nswnUKU/mqdefault.jpg","channel_id":"UC0c2TaeQY5VRMltq5Z2TQMA","title":"kittens
46
+ inspired by kittens","caption":"http://www.facebook.com/pages/Kittens-Inspired-by-Kittens/49930012799","category_name":"Pets
47
+ & Animals","category_id":"15","published_at":"2008-09-01T14:25:17Z","duration":92,"view_count":17228767,"like_count":47388}'
48
+ http_version:
49
+ recorded_at: Thu, 12 Sep 2013 22:43:05 GMT
50
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://hello:@localhost:3000/api/v1/engines/site-search-api-example/document_types/videos.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept:
11
+ - ! "*/*"
12
+ X-Swiftype-Client:
13
+ - elastic-app-search-ruby
14
+ X-Swiftype-Client-Version:
15
+ - 1.0.0
16
+ Content-Type:
17
+ - application/json
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ X-Ua-Compatible:
26
+ - IE=Edge
27
+ Etag:
28
+ - ! '"c0b8e0a96ec5b4216a0f7059ea47b93a"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Set-Cookie:
32
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWQxMTkxOGJhNGY5MDNlMzljMmIyNGExYWM4OWE1MmMyBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRUDg5%2By7ZYCnHAAABSSIiJDJhJDEwJE1rNmZOdHA1cC9ZNVIuQU5sZFB2UWUGOwBU--7c4487a9697246fbe8f2bf96762f0e24d886601c;
33
+ path=/; HttpOnly
34
+ X-Request-Id:
35
+ - b8db67ee444cb38bd096d9887d3347b8
36
+ X-Runtime:
37
+ - "0.037643"
38
+ Connection:
39
+ - close
40
+ Server:
41
+ - thin 1.5.0 codename Knife
42
+ body:
43
+ encoding: US-ASCII
44
+ string: ! '{"id":"523231e62ed9605898000020","name":"videos","slug":"videos","engine_id":"51b92f982ed960a844000248","updated_at":"2013-09-12T21:28:13Z","document_count":12,"field_mapping":{"external_id":"enum","updated_at":"date","url":"enum","thumbnail_url":"enum","channel_id":"enum","title":"string","caption":"text","category_name":"string","category_id":"enum","published_at":"date","duration":"integer","view_count":"integer","like_count":"integer","tags":"string"}}'
45
+ http_version:
46
+ recorded_at: Thu, 12 Sep 2013 21:30:19 GMT
47
+ recorded_with: VCR 2.5.0