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,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://hello:@localhost:3000/api/v1/engines/crawler-demo-site/domains/51534c6e2ed960cc79000001.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
+ - ! '"c7ea64ce75482ff6c299922bcd87b7af"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Set-Cookie:
32
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTI0ZTgzZjYyNjZiZDMwOWIyZDhiYjE5ZWE4NmIxNGFlBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRUDg5%2By7ZYCnHAAABSSIiJDJhJDEwJE1rNmZOdHA1cC9ZNVIuQU5sZFB2UWUGOwBU--65ede0a4cc89f4446d351e20a92bccf6d14bffba;
33
+ path=/; HttpOnly
34
+ X-Request-Id:
35
+ - 20c1f48621e18c7baf28ced390f38fc3
36
+ X-Runtime:
37
+ - '0.051562'
38
+ Connection:
39
+ - close
40
+ Server:
41
+ - thin 1.5.0 codename Knife
42
+ body:
43
+ encoding: US-ASCII
44
+ string: ! '{"id":"51534c6e2ed960cc79000001","engine_id":"51534c502ed960a1e6000005","submitted_url":"http://crawler-demo-site.herokuapp.com/","start_crawl_url":"http://crawler-demo-site.herokuapp.com/","crawling":false,"document_count":5,"updated_at":"2013-09-12T23:15:31Z"}'
45
+ http_version:
46
+ recorded_at: Thu, 12 Sep 2013 23:15:33 GMT
47
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,45 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://hello:@localhost:3000/api/v1/engines/crawler-demo-site/domains/bogus.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: 404
21
+ message: Not Found
22
+ headers:
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ X-Ua-Compatible:
26
+ - IE=Edge
27
+ Cache-Control:
28
+ - no-cache
29
+ Set-Cookie:
30
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTRiMzg0MzhjMzJkMDVlY2I5ZjE2MjhlOTIzNTc0NDMzBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRUDg5%2By7ZYCnHAAABSSIiJDJhJDEwJE1rNmZOdHA1cC9ZNVIuQU5sZFB2UWUGOwBU--a9fafafb9de8c13294cfb4508ea5c77c6a692c84;
31
+ path=/; HttpOnly
32
+ X-Request-Id:
33
+ - 6667ca52cfefd21bdb16b46f32d52e21
34
+ X-Runtime:
35
+ - '0.161114'
36
+ Connection:
37
+ - close
38
+ Server:
39
+ - thin 1.5.0 codename Knife
40
+ body:
41
+ encoding: US-ASCII
42
+ string: ! '{"error":"Record not found. No entity with id ''bogus''"}'
43
+ http_version:
44
+ recorded_at: Thu, 12 Sep 2013 23:15:33 GMT
45
+ 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.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
+ - ! '"08e8d7974722c9259634cc6cff0bd5cf"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Set-Cookie:
32
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTMwOTRmZjJiZTY3Njc3MDVjM2UxMjBjOWQ2ODFkMzdmBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRUDg5%2By7ZYCnHAAABSSIiJDJhJDEwJE1rNmZOdHA1cC9ZNVIuQU5sZFB2UWUGOwBU--536b127b7e0ad758d2436b429e3a76dad68b8119;
33
+ path=/; HttpOnly
34
+ X-Request-Id:
35
+ - 8e42dc4c230e9212e6754ccff7e1a04f
36
+ X-Runtime:
37
+ - "0.038173"
38
+ Connection:
39
+ - close
40
+ Server:
41
+ - thin 1.5.0 codename Knife
42
+ body:
43
+ encoding: US-ASCII
44
+ string: ! '{"name":"site-search-api-example","slug":"site-search-api-example","key":"88LCBKWrZnbQgyqzdefX","id":"51b92f982ed960a844000248","_id":"51b92f982ed960a844000248","updated_at":"2013-09-12T20:39:02Z","document_count":36}'
45
+ http_version:
46
+ recorded_at: Thu, 12 Sep 2013 21:30:20 GMT
47
+ 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.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
+ - ! '"4374411a4b29635b19346e2fae4a4761"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Set-Cookie:
32
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTYxN2EyOGEzNzM3ZDQwZDAzYjA1MmY4YzY3ZTBmZjVlBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRUDg5%2By7ZYCnHAAABSSIiJDJhJDEwJE1rNmZOdHA1cC9ZNVIuQU5sZFB2UWUGOwBU--ac4885951e99ca51ab5666fd79e27bb1bb705fd4;
33
+ path=/; HttpOnly
34
+ X-Request-Id:
35
+ - 30c047178b2bad4a36470cfe5e36aeab
36
+ X-Runtime:
37
+ - "0.057562"
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"}},{"id":"51b92f992ed960a84400024b","name":"channels","slug":"channels","engine_id":"51b92f982ed960a844000248","updated_at":"2013-06-13T02:34:16Z","document_count":12,"field_mapping":{"external_id":"enum","updated_at":"date","url":"enum","thumbnail_url":"enum","title":"string","description":"string","published_at":"date","view_count":"integer","subscriber_count":"integer","video_count":"integer"}}]'
45
+ http_version:
46
+ recorded_at: Thu, 12 Sep 2013 21:30:20 GMT
47
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,71 @@
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.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
+ - ! '"6a9a170b4de7756b0f1371b0ba3f04fe"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Set-Cookie:
32
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTU4MjEyNDMxNGI0NDkwMzMyMzYzYTliYTY4OWM4YzgzBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRUDg5%2By7ZYCnHAAABSSIiJDJhJDEwJE1rNmZOdHA1cC9ZNVIuQU5sZFB2UWUGOwBU--9e994b3c88ee82371f7525b8f0bd53584ee7fdee;
33
+ path=/; HttpOnly
34
+ X-Request-Id:
35
+ - a1da222a29ca8afc26bf5ed4a63dcc03
36
+ X-Runtime:
37
+ - "0.045269"
38
+ Connection:
39
+ - close
40
+ Server:
41
+ - thin 1.5.0 codename Knife
42
+ body:
43
+ encoding: US-ASCII
44
+ string:
45
+ ! '[{"external_id":"C8Wu3Bps9ic","engine_id":"51b92f982ed960a844000248","document_type_id":"523231e62ed9605898000020","id":"523231ea2ed9605898000025","_id":"523231ea2ed9605898000025","updated_at":"2013-09-12T21:28:10Z","url":"http://www.youtube.com/watch?v=C8Wu3Bps9ic","thumbnail_url":"https://i.ytimg.com/vi/C8Wu3Bps9ic/mqdefault.jpg","channel_id":"UCfLGZs8bSDbkNJjCRIE7NSg","title":"Meatball
46
+ Massacre - Regular Ordinary Swedish Meal Time","caption":"Swedish Meatballs.
47
+ They are good for you.\r\n\r\nLingonsylt are for Swedish nationalists. WE
48
+ DONT LIKE THAT\r\n\r\n\r\nEnjoy.\r\n\r\n\r\n( Greyish sometimes to compensate
49
+ 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
50
+ \r\nand Twitter: http://twitter.com/SwedishMealTime","category_name":"Comedy","category_id":"23","published_at":"2011-01-13T21:48:04Z","duration":199,"view_count":5565896,"like_count":30139},{"external_id":"FHtvDA0W34I","engine_id":"51b92f982ed960a844000248","document_type_id":"523231e62ed9605898000020","id":"523231eb2ed9605898000026","_id":"523231eb2ed9605898000026","updated_at":"2013-09-12T21:28:11Z","url":"http://www.youtube.com/watch?v=FHtvDA0W34I","thumbnail_url":"https://i.ytimg.com/vi/FHtvDA0W34I/mqdefault.jpg","channel_id":"UCblfuW_4rakIf2h6aqANefA","title":"Felix
51
+ Baumgartner''s supersonic freefall from 128k'' - Mission Highlights","caption":"Song:
52
+ http://smarturl.it/tafreespacedout\n\nAfter flying to an altitude of 39,045
53
+ meters (128,100 feet) in a helium-filled balloon, Felix Baumgartner completed
54
+ a record breaking jump for the ages from the edge of space, exactly 65 years
55
+ after Chuck Yeager first broke the sound barrier flying in an experimental
56
+ rocket-powered airplane. Felix reached a maximum of speed of 1,357.6 km/h
57
+ or 843.6 mph(Mach 1.25) through the near vacuum of the stratosphere before
58
+ being slowed by the atmosphere later during his 4:20 minute long freefall.
59
+ The 43-year-old Austrian skydiving expert also broke two other world records
60
+ (highest freefall, highest manned balloon flight), leaving the one for the
61
+ longest freefall to project mentor Col. Joe Kittinger.\n\nWatch the Full Recap:
62
+ http://www.youtube.com/watch?v=dOoHArAzdug\n\nhttp://www.redbullstratos.com\n___________________________________________________________\n\nExperience
63
+ the world of Red Bull like you have never seen it before. With the best action
64
+ sports clips on the web and YouTube exclusive series, prepare for your \"stoke
65
+ factor\" to be at an all time high.\n\nRed Bull on Facebook: http://win.gs/redbullfb\n\nRed
66
+ Bull on Twitter: http://win.gs/redbulltwitter\n\nSubscribe to Red Bull on
67
+ Youtube: http://www.youtube.com/subscription_center?add_user=redbull","category_name":"Science
68
+ & Technology","category_id":"28","published_at":"2012-10-15T00:06:53Z","duration":91,"view_count":32874417,"like_count":127463}]'
69
+ http_version:
70
+ recorded_at: Thu, 12 Sep 2013 21:30:21 GMT
71
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,71 @@
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.json?page=2&per_page=2
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
+ - ! '"6a9a170b4de7756b0f1371b0ba3f04fe"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Set-Cookie:
32
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTU4MjEyNDMxNGI0NDkwMzMyMzYzYTliYTY4OWM4YzgzBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRUDg5%2By7ZYCnHAAABSSIiJDJhJDEwJE1rNmZOdHA1cC9ZNVIuQU5sZFB2UWUGOwBU--9e994b3c88ee82371f7525b8f0bd53584ee7fdee;
33
+ path=/; HttpOnly
34
+ X-Request-Id:
35
+ - a1da222a29ca8afc26bf5ed4a63dcc03
36
+ X-Runtime:
37
+ - "0.045269"
38
+ Connection:
39
+ - close
40
+ Server:
41
+ - thin 1.5.0 codename Knife
42
+ body:
43
+ encoding: US-ASCII
44
+ string:
45
+ ! '[{"external_id":"C8Wu3Bps9ic","engine_id":"51b92f982ed960a844000248","document_type_id":"523231e62ed9605898000020","id":"523231ea2ed9605898000025","_id":"523231ea2ed9605898000025","updated_at":"2013-09-12T21:28:10Z","url":"http://www.youtube.com/watch?v=C8Wu3Bps9ic","thumbnail_url":"https://i.ytimg.com/vi/C8Wu3Bps9ic/mqdefault.jpg","channel_id":"UCfLGZs8bSDbkNJjCRIE7NSg","title":"Meatball
46
+ Massacre - Regular Ordinary Swedish Meal Time","caption":"Swedish Meatballs.
47
+ They are good for you.\r\n\r\nLingonsylt are for Swedish nationalists. WE
48
+ DONT LIKE THAT\r\n\r\n\r\nEnjoy.\r\n\r\n\r\n( Greyish sometimes to compensate
49
+ 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
50
+ \r\nand Twitter: http://twitter.com/SwedishMealTime","category_name":"Comedy","category_id":"23","published_at":"2011-01-13T21:48:04Z","duration":199,"view_count":5565896,"like_count":30139},{"external_id":"FHtvDA0W34I","engine_id":"51b92f982ed960a844000248","document_type_id":"523231e62ed9605898000020","id":"523231eb2ed9605898000026","_id":"523231eb2ed9605898000026","updated_at":"2013-09-12T21:28:11Z","url":"http://www.youtube.com/watch?v=FHtvDA0W34I","thumbnail_url":"https://i.ytimg.com/vi/FHtvDA0W34I/mqdefault.jpg","channel_id":"UCblfuW_4rakIf2h6aqANefA","title":"Felix
51
+ Baumgartner''s supersonic freefall from 128k'' - Mission Highlights","caption":"Song:
52
+ http://smarturl.it/tafreespacedout\n\nAfter flying to an altitude of 39,045
53
+ meters (128,100 feet) in a helium-filled balloon, Felix Baumgartner completed
54
+ a record breaking jump for the ages from the edge of space, exactly 65 years
55
+ after Chuck Yeager first broke the sound barrier flying in an experimental
56
+ rocket-powered airplane. Felix reached a maximum of speed of 1,357.6 km/h
57
+ or 843.6 mph(Mach 1.25) through the near vacuum of the stratosphere before
58
+ being slowed by the atmosphere later during his 4:20 minute long freefall.
59
+ The 43-year-old Austrian skydiving expert also broke two other world records
60
+ (highest freefall, highest manned balloon flight), leaving the one for the
61
+ longest freefall to project mentor Col. Joe Kittinger.\n\nWatch the Full Recap:
62
+ http://www.youtube.com/watch?v=dOoHArAzdug\n\nhttp://www.redbullstratos.com\n___________________________________________________________\n\nExperience
63
+ the world of Red Bull like you have never seen it before. With the best action
64
+ sports clips on the web and YouTube exclusive series, prepare for your \"stoke
65
+ factor\" to be at an all time high.\n\nRed Bull on Facebook: http://win.gs/redbullfb\n\nRed
66
+ Bull on Twitter: http://win.gs/redbulltwitter\n\nSubscribe to Red Bull on
67
+ Youtube: http://www.youtube.com/subscription_center?add_user=redbull","category_name":"Science
68
+ & Technology","category_id":"28","published_at":"2012-10-15T00:06:53Z","duration":91,"view_count":32874417,"like_count":127463}]'
69
+ http_version:
70
+ recorded_at: Thu, 12 Sep 2013 21:30:21 GMT
71
+ 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/crawler-demo-site/domains.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
+ - ! '"d4ddc5d4d5691709c01fd423ae8b7743"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Set-Cookie:
32
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTU5MjM3OGZiZDBmYjFhNDA2Mzk4NGU4NGEyNzc3YmM5BjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRUDg5%2By7ZYCnHAAABSSIiJDJhJDEwJE1rNmZOdHA1cC9ZNVIuQU5sZFB2UWUGOwBU--9e272659d4d78b91ca24a77389d3da60bff2143a;
33
+ path=/; HttpOnly
34
+ X-Request-Id:
35
+ - 2c29b4fa4df592809e2d1a5052522194
36
+ X-Runtime:
37
+ - '0.042829'
38
+ Connection:
39
+ - close
40
+ Server:
41
+ - thin 1.5.0 codename Knife
42
+ body:
43
+ encoding: US-ASCII
44
+ string: ! '[{"id":"51534c6e2ed960cc79000001","engine_id":"51534c502ed960a1e6000005","submitted_url":"http://crawler-demo-site.herokuapp.com/","start_crawl_url":"http://crawler-demo-site.herokuapp.com/","crawling":false,"document_count":5,"updated_at":"2013-09-12T23:15:45Z"}]'
45
+ http_version:
46
+ recorded_at: Thu, 12 Sep 2013 23:17:31 GMT
47
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://hello:@localhost:3000/api/v1/engines.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
+ - ! '"6f157adbf23af6b9bb0546228193603d"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Set-Cookie:
32
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTk5OTA0ZjNmNjM4NTAwYjg3N2QzYzhhMjIxYTE5ZWEyBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRUDg5%2By7ZYCnHAAABSSIiJDJhJDEwJE1rNmZOdHA1cC9ZNVIuQU5sZFB2UWUGOwBU--3b73ac78f6e0b7fae3954979d536a6b2f39e17e6;
33
+ path=/; HttpOnly
34
+ X-Request-Id:
35
+ - a4f632b2818ff0e0c0a5de80a19829b6
36
+ X-Runtime:
37
+ - '0.197433'
38
+ Connection:
39
+ - close
40
+ Server:
41
+ - thin 1.5.0 codename Knife
42
+ body:
43
+ encoding: US-ASCII
44
+ string: ! '[{"name":"api-test","slug":"api-test","key":"vAWBdVfHeFZSxgEJwgVF","id":"51c1fcbd2ed960d45200000c","_id":"51c1fcbd2ed960d45200000c","updated_at":"2013-07-09T02:06:29Z","document_count":2},{"name":"articulate","slug":"articulate","key":"JKHB2u5fjLyhXLqiiiXg","id":"50ad44382ed960d73200000d","_id":"50ad44382ed960d73200000d","updated_at":"2013-07-09T02:06:29Z","document_count":0},{"name":"articulate
45
+ support","slug":"articulate-support","key":"X4jThg3nvrs5usN9fZ9g","id":"50819ba72ed9602079000004","_id":"50819ba72ed9602079000004","updated_at":"2013-07-09T02:06:29Z","document_count":1836},{"name":"biota","slug":"biota","key":"F1kK3BRmU77mLYPyGY7X","id":"518aa8e32ed960145200001b","_id":"518aa8e32ed960145200001b","updated_at":"2013-07-09T02:06:29Z","document_count":30},{"name":"bookstore","slug":"bookstore","key":"bookstore","id":"5090306a2ed960358200001b","_id":"5090306a2ed960358200001b","updated_at":"2013-07-09T02:06:30Z","document_count":21},{"name":"crawler","slug":"crawler","key":"3Lq7AzukeA1h5ta64oYX","id":"516f59112ed960d934000003","_id":"516f59112ed960d934000003","updated_at":"2013-07-09T02:06:30Z","document_count":2}]'
46
+ http_version:
47
+ recorded_at: Thu, 12 Sep 2013 21:30:21 GMT
48
+ 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/users.json?client_id=0d94f7cf2bd1e65a7e1f9f929d1bcb2b248af69b8112d24484e87014125538f8&client_secret=f600fb0b16b516cbb9b9f0eeb60f3b35f685b5ec4a94694ae57b5bbb8860f240
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
+ - ! '"daf9596e877c78b8ff3264f5af845bea"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Set-Cookie:
32
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTIyODM3MTk0NzJhNGU1M2ZhZGExOGQ2MGMyM2RmZTZjBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRUDg5%2By7ZYCnHAAABSSIiJDJhJDEwJE1rNmZOdHA1cC9ZNVIuQU5sZFB2UWUGOwBU--1318fb8cf52ee469dc559a17d8882194715c33c0;
33
+ path=/; HttpOnly
34
+ X-Request-Id:
35
+ - 8e9d4bce7f2dbeff9fd9bbcdbd196f7e
36
+ X-Runtime:
37
+ - '0.044580'
38
+ Connection:
39
+ - close
40
+ Server:
41
+ - thin 1.5.0 codename Knife
42
+ body:
43
+ encoding: US-ASCII
44
+ string: ! '[{"id":"5230b8c82ed960ba2000001d","access_token":"0381294b7ef41db44fba20aad86a52d294b9fae67a26e85139d323eb78106706"},{"id":"5230c9c92ed960ba20000022","access_token":"e6998f8a36e29229198c77e6465f5d5271f9b60bf346654028c8241974f5d22d"},{"id":"5230fc6d2ed960ba20000026","access_token":"2565b0146bf79752ce7917d296f77614c1ebb5ffef28006e61927cd10d87968c"}]'
45
+ http_version:
46
+ recorded_at: Fri, 13 Sep 2013 00:53:23 GMT
47
+ recorded_with: VCR 2.5.0