swiftype 0.0.5 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. data/.gitignore +5 -0
  2. data/.travis.yml +6 -0
  3. data/Gemfile +1 -1
  4. data/README.md +202 -283
  5. data/lib/data/ca-bundle.crt +3554 -0
  6. data/lib/swiftype.rb +7 -31
  7. data/lib/swiftype/client.rb +439 -11
  8. data/lib/swiftype/configuration.rb +29 -4
  9. data/lib/swiftype/exceptions.rb +2 -0
  10. data/lib/swiftype/ext/backport-uri.rb +33 -0
  11. data/lib/swiftype/request.rb +88 -20
  12. data/lib/swiftype/result_set.rb +43 -6
  13. data/lib/swiftype/sso.rb +20 -0
  14. data/lib/swiftype/version.rb +1 -1
  15. data/spec/client_spec.rb +576 -0
  16. data/spec/configuration_spec.rb +36 -0
  17. data/spec/deprecated_spec.rb +20 -0
  18. data/spec/fixtures/vcr/analytics_autoselects.yml +55 -0
  19. data/spec/fixtures/vcr/analytics_autoselects_with_document_type.yml +55 -0
  20. data/spec/fixtures/vcr/analytics_autoselects_with_document_type_and_time_range.yml +55 -0
  21. data/spec/fixtures/vcr/analytics_autoselects_with_time_range.yml +55 -0
  22. data/spec/fixtures/vcr/analytics_clicks.yml +55 -0
  23. data/spec/fixtures/vcr/analytics_clicks_with_document_type.yml +55 -0
  24. data/spec/fixtures/vcr/analytics_clicks_with_document_type_and_time_range.yml +55 -0
  25. data/spec/fixtures/vcr/analytics_clicks_with_time_range.yml +55 -0
  26. data/spec/fixtures/vcr/analytics_searches.yml +55 -0
  27. data/spec/fixtures/vcr/analytics_searches_with_document_type_and_time_range.yml +55 -0
  28. data/spec/fixtures/vcr/analytics_searches_with_time_range.yml +55 -0
  29. data/spec/fixtures/vcr/analytics_searchs_with_document_type.yml +55 -0
  30. data/spec/fixtures/vcr/analytics_top_no_result_queries.yml +55 -0
  31. data/spec/fixtures/vcr/analytics_top_no_result_queries_paginated.yml +55 -0
  32. data/spec/fixtures/vcr/analytics_top_queries.yml +55 -0
  33. data/spec/fixtures/vcr/analytics_top_queries_paginated.yml +55 -0
  34. data/spec/fixtures/vcr/analytics_top_queries_too_large.yml +51 -0
  35. data/spec/fixtures/vcr/bulk_create_documents.yml +49 -0
  36. data/spec/fixtures/vcr/bulk_create_or_update_documents_failure.yml +45 -0
  37. data/spec/fixtures/vcr/bulk_create_or_update_documents_success.yml +49 -0
  38. data/spec/fixtures/vcr/bulk_destroy_documents.yml +45 -0
  39. data/spec/fixtures/vcr/crawl_url.yml +45 -0
  40. data/spec/fixtures/vcr/create_document.yml +48 -0
  41. data/spec/fixtures/vcr/create_document_type.yml +45 -0
  42. data/spec/fixtures/vcr/create_domain.yml +45 -0
  43. data/spec/fixtures/vcr/create_engine.yml +45 -0
  44. data/spec/fixtures/vcr/create_or_update_document_create.yml +47 -0
  45. data/spec/fixtures/vcr/create_or_update_document_update.yml +47 -0
  46. data/spec/fixtures/vcr/create_user.yml +45 -0
  47. data/spec/fixtures/vcr/destroy_document.yml +41 -0
  48. data/spec/fixtures/vcr/destroy_document_type.yml +41 -0
  49. data/spec/fixtures/vcr/destroy_domain.yml +41 -0
  50. data/spec/fixtures/vcr/destroy_engine.yml +41 -0
  51. data/spec/fixtures/vcr/destroy_non_existent_document_type.yml +43 -0
  52. data/spec/fixtures/vcr/document_type_search.yml +60 -0
  53. data/spec/fixtures/vcr/document_type_search_pagination.yml +45 -0
  54. data/spec/fixtures/vcr/document_type_suggest.yml +50 -0
  55. data/spec/fixtures/vcr/document_type_suggest_pagination.yml +45 -0
  56. data/spec/fixtures/vcr/engine_search.yml +64 -0
  57. data/spec/fixtures/vcr/engine_search_facets.yml +162 -0
  58. data/spec/fixtures/vcr/engine_search_pagination.yml +45 -0
  59. data/spec/fixtures/vcr/engine_suggest.yml +52 -0
  60. data/spec/fixtures/vcr/engine_suggest_pagination.yml +45 -0
  61. data/spec/fixtures/vcr/find_document.yml +47 -0
  62. data/spec/fixtures/vcr/find_document_type.yml +45 -0
  63. data/spec/fixtures/vcr/find_domain.yml +45 -0
  64. data/spec/fixtures/vcr/find_domain_failure.yml +43 -0
  65. data/spec/fixtures/vcr/find_engine.yml +45 -0
  66. data/spec/fixtures/vcr/list_document_type.yml +45 -0
  67. data/spec/fixtures/vcr/list_documents.yml +68 -0
  68. data/spec/fixtures/vcr/list_documents_with_pagination.yml +68 -0
  69. data/spec/fixtures/vcr/list_domains.yml +45 -0
  70. data/spec/fixtures/vcr/list_engines.yml +46 -0
  71. data/spec/fixtures/vcr/list_users.yml +45 -0
  72. data/spec/fixtures/vcr/list_users_with_pagination.yml +45 -0
  73. data/spec/fixtures/vcr/log_clickthrough_failure.yml +43 -0
  74. data/spec/fixtures/vcr/log_clickthrough_success.yml +45 -0
  75. data/spec/fixtures/vcr/recrawl_domain_failure.yml +44 -0
  76. data/spec/fixtures/vcr/recrawl_domain_success.yml +45 -0
  77. data/spec/fixtures/vcr/show_user.yml +45 -0
  78. data/spec/fixtures/vcr/update_document.yml +47 -0
  79. data/spec/fixtures/vcr/update_document_unknown_field_failure.yml +45 -0
  80. data/spec/fixtures/vcr/update_documents_failure_non_existent_document.yml +45 -0
  81. data/spec/fixtures/vcr/update_documents_success.yml +45 -0
  82. data/spec/fixtures/vcr/users_client_secret_incorrect.yml +42 -0
  83. data/spec/fixtures/vcr/users_no_api_key.yml +42 -0
  84. data/spec/fixtures/vcr/users_no_client_id_or_secret.yml +43 -0
  85. data/spec/platform_spec.rb +95 -0
  86. data/spec/spec_helper.rb +26 -0
  87. data/spec/ssl_spec.rb +34 -0
  88. data/spec/sso_spec.rb +24 -0
  89. data/swiftype.gemspec +10 -11
  90. metadata +183 -52
  91. data/lib/swiftype/base_model.rb +0 -89
  92. data/lib/swiftype/connection.rb +0 -47
  93. data/lib/swiftype/document.rb +0 -17
  94. data/lib/swiftype/document_type.rb +0 -69
  95. data/lib/swiftype/easy.rb +0 -77
  96. data/lib/swiftype/engine.rb +0 -33
  97. data/lib/swiftype/search.rb +0 -23
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://hello:@localhost:3000/api/v1/engines/recursion/analytics/clicks.json?end_date=2013-07-07&start_date=2013-07-01
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - ! '*/*'
12
+ User-Agent:
13
+ - Swiftype-Ruby/1.0.0
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - ngx_openresty/1.2.7.8
23
+ Date:
24
+ - Tue, 17 Sep 2013 00:07:17 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Vary:
32
+ - Accept-Encoding
33
+ Status:
34
+ - 200 OK
35
+ X-Ua-Compatible:
36
+ - IE=Edge,chrome=1
37
+ Etag:
38
+ - ! '"b55e3fc5da2c4b1937f7bb6580de94f6"'
39
+ Cache-Control:
40
+ - must-revalidate, private, max-age=0
41
+ Set-Cookie:
42
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTc5Njk1Y2I4MDVkM2JkZmI0MmJjYTU3OTdkMjk5NGE1BjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--448a73b8c641507815ddaf760803c397c7d5ea14;
43
+ path=/; HttpOnly; secure
44
+ X-Request-Id:
45
+ - 302a83a9093a45ffd0b652beafaf3870
46
+ X-Runtime:
47
+ - '0.064719'
48
+ X-Rack-Cache:
49
+ - miss
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ! '[["2013-07-07",0],["2013-07-06",0],["2013-07-05",0],["2013-07-04",0],["2013-07-03",0],["2013-07-02",0],["2013-07-01",0]]'
53
+ http_version:
54
+ recorded_at: Tue, 17 Sep 2013 00:07:17 GMT
55
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://hello:@localhost:3000/api/v1/engines/recursion/analytics/searches.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - ! '*/*'
12
+ User-Agent:
13
+ - Swiftype-Ruby/1.0.0
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - ngx_openresty/1.2.7.8
23
+ Date:
24
+ - Fri, 13 Sep 2013 00:00:26 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Vary:
32
+ - Accept-Encoding
33
+ Status:
34
+ - 200 OK
35
+ X-Ua-Compatible:
36
+ - IE=Edge,chrome=1
37
+ Etag:
38
+ - ! '"65284cb4bc5c5c407bec9b1636d07883"'
39
+ Cache-Control:
40
+ - must-revalidate, private, max-age=0
41
+ Set-Cookie:
42
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWViNWFiOTRjYmJlNjQ0ZTA0YmRkZDg0OTBiMGFjOGI4BjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--a20c87916289c84cbde5302554a74646ff24db5e;
43
+ path=/; HttpOnly; secure
44
+ X-Request-Id:
45
+ - 64bd256bacec7bde69f559c2f56c4a06
46
+ X-Runtime:
47
+ - '0.045969'
48
+ X-Rack-Cache:
49
+ - miss
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ! '[["2013-09-13",0],["2013-09-12",0],["2013-09-11",0],["2013-09-10",0],["2013-09-09",0],["2013-09-08",0],["2013-09-07",0],["2013-09-06",0],["2013-09-05",0],["2013-09-04",0],["2013-09-03",0],["2013-09-02",0],["2013-09-01",1],["2013-08-31",2],["2013-08-30",0]]'
53
+ http_version:
54
+ recorded_at: Fri, 13 Sep 2013 00:00:26 GMT
55
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://hello:@localhost:3000/api/v1/engines/recursion/document_types/page/analytics/autoselects.json?end_date=2013-07-07&start_date=2013-07-01
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - ! '*/*'
12
+ User-Agent:
13
+ - Swiftype-Ruby/1.0.0
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - ngx_openresty/1.2.7.8
23
+ Date:
24
+ - Mon, 16 Sep 2013 20:18:51 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Vary:
32
+ - Accept-Encoding
33
+ Status:
34
+ - 200 OK
35
+ X-Ua-Compatible:
36
+ - IE=Edge,chrome=1
37
+ Etag:
38
+ - ! '"832ef2141a53df6109cbdff72cee0467"'
39
+ Cache-Control:
40
+ - must-revalidate, private, max-age=0
41
+ Set-Cookie:
42
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWZiYzMzZDA3YjYwYjk1ZWY4OTVkODVlNTNhMDQzNTg4BjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--d9ed9f1abd2a416ce90e9722cfe54aa373531753;
43
+ path=/; HttpOnly; secure
44
+ X-Request-Id:
45
+ - 6bc149fa640fcc0a4524e9dc3ddca8ea
46
+ X-Runtime:
47
+ - '0.043314'
48
+ X-Rack-Cache:
49
+ - miss
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ! '[["2013-07-07",0],["2013-07-06",0],["2013-07-05",0],["2013-07-04",0],["2013-07-03",0],["2013-07-02",1],["2013-07-01",0]]'
53
+ http_version:
54
+ recorded_at: Mon, 16 Sep 2013 20:18:51 GMT
55
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://hello:@localhost:3000/api/v1/engines/recursion/analytics/searches.json?end_date=2013-01-07&start_date=2013-01-01
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - ! '*/*'
12
+ User-Agent:
13
+ - Swiftype-Ruby/1.0.0
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - ngx_openresty/1.2.7.8
23
+ Date:
24
+ - Fri, 13 Sep 2013 00:00:26 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Vary:
32
+ - Accept-Encoding
33
+ Status:
34
+ - 200 OK
35
+ X-Ua-Compatible:
36
+ - IE=Edge,chrome=1
37
+ Etag:
38
+ - ! '"bb6f1f14aa21e669cd5b077d88e3605c"'
39
+ Cache-Control:
40
+ - must-revalidate, private, max-age=0
41
+ Set-Cookie:
42
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTE1YTZlNmExNjdiZTVmYjYzNTRkOGVjM2YxYmFkYTg1BjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--05a93dab5b67f6cbddd63fccf19def21d946aae8;
43
+ path=/; HttpOnly; secure
44
+ X-Request-Id:
45
+ - 82d71d6f6cbcd83c1eb50b5be89ce4d5
46
+ X-Runtime:
47
+ - '0.049786'
48
+ X-Rack-Cache:
49
+ - miss
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ! '[["2013-01-07",0],["2013-01-06",0],["2013-01-05",0],["2013-01-04",0],["2013-01-03",2],["2013-01-02",0],["2013-01-01",0]]'
53
+ http_version:
54
+ recorded_at: Fri, 13 Sep 2013 00:00:27 GMT
55
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://hello:@localhost:3000/api/v1/engines/recursion/document_types/page/analytics/searches.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - ! '*/*'
12
+ User-Agent:
13
+ - Swiftype-Ruby/1.0.0
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - ngx_openresty/1.2.7.8
23
+ Date:
24
+ - Mon, 16 Sep 2013 20:18:50 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Vary:
32
+ - Accept-Encoding
33
+ Status:
34
+ - 200 OK
35
+ X-Ua-Compatible:
36
+ - IE=Edge,chrome=1
37
+ Etag:
38
+ - ! '"8f1d1c7b9500cf39e6776b59eec88a4b"'
39
+ Cache-Control:
40
+ - must-revalidate, private, max-age=0
41
+ Set-Cookie:
42
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTE1NWRiM2RiOThiNDNmNWFlZWRkNzcwMTJkYjQ3ZDI2BjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--e3c95cedd74be6982994c44aea490f5bdd7c8282;
43
+ path=/; HttpOnly; secure
44
+ X-Request-Id:
45
+ - 1d86c88bc966c051dc2f5ca50499f408
46
+ X-Runtime:
47
+ - '0.273629'
48
+ X-Rack-Cache:
49
+ - miss
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ! '[["2013-09-16",0],["2013-09-15",0],["2013-09-14",0],["2013-09-13",0],["2013-09-12",0],["2013-09-11",0],["2013-09-10",0],["2013-09-09",0],["2013-09-08",0],["2013-09-07",0],["2013-09-06",0],["2013-09-05",0],["2013-09-04",0],["2013-09-03",0],["2013-09-02",0]]'
53
+ http_version:
54
+ recorded_at: Mon, 16 Sep 2013 20:18:50 GMT
55
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://hello:@localhost:3000/api/v1/engines/recursion/analytics/top_no_result_queries.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - ! '*/*'
12
+ User-Agent:
13
+ - Swiftype-Ruby/1.0.0
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - ngx_openresty/1.2.7.8
23
+ Date:
24
+ - Fri, 13 Sep 2013 00:40:33 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Vary:
32
+ - Accept-Encoding
33
+ Status:
34
+ - 200 OK
35
+ X-Ua-Compatible:
36
+ - IE=Edge,chrome=1
37
+ Etag:
38
+ - ! '"3b52d910b292efe472c5485e30ae8843"'
39
+ Cache-Control:
40
+ - must-revalidate, private, max-age=0
41
+ Set-Cookie:
42
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTMwMjU3NDJkZjhhM2RkM2I4M2VlNTZkNWQ2YThiOWFlBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--46e9833dccbb87f52f5d20893ed1a3cb4f06c2c9;
43
+ path=/; HttpOnly; secure
44
+ X-Request-Id:
45
+ - 73ec527ea4932198890c535bbb739ddc
46
+ X-Runtime:
47
+ - '0.040592'
48
+ X-Rack-Cache:
49
+ - miss
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ! '[["no results",10], ["more no results",2]]'
53
+ http_version:
54
+ recorded_at: Fri, 13 Sep 2013 00:40:33 GMT
55
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://hello:@localhost:3000/api/v1/engines/recursion/analytics/top_no_result_queries.json?end_date=2013-08-30&page=2&per_page=5&start_date=2013-08-01
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - ! '*/*'
12
+ User-Agent:
13
+ - Swiftype-Ruby/1.0.0
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - ngx_openresty/1.2.7.8
23
+ Date:
24
+ - Fri, 13 Sep 2013 00:43:37 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Vary:
32
+ - Accept-Encoding
33
+ Status:
34
+ - 200 OK
35
+ X-Ua-Compatible:
36
+ - IE=Edge,chrome=1
37
+ Etag:
38
+ - ! '"d751713988987e9331980363e24189ce"'
39
+ Cache-Control:
40
+ - must-revalidate, private, max-age=0
41
+ Set-Cookie:
42
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTJkNWNkOTgxYTM1ZTQ5Y2IzZDI0NmZiYzllYjc3MmYwBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--73a80b88e68f3696ec3879190e4b50bd2ad8c79e;
43
+ path=/; HttpOnly; secure
44
+ X-Request-Id:
45
+ - e61dd55ca728a9bd718227ab8f2a83e9
46
+ X-Runtime:
47
+ - '0.163607'
48
+ X-Rack-Cache:
49
+ - miss
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ! '[["no result again",2]]'
53
+ http_version:
54
+ recorded_at: Fri, 13 Sep 2013 00:43:37 GMT
55
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://hello:@localhost:3000/api/v1/engines/recursion/analytics/top_queries.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - ! '*/*'
12
+ User-Agent:
13
+ - Swiftype-Ruby/1.0.0
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - ngx_openresty/1.2.7.8
23
+ Date:
24
+ - Fri, 13 Sep 2013 00:06:31 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Vary:
32
+ - Accept-Encoding
33
+ Status:
34
+ - 200 OK
35
+ X-Ua-Compatible:
36
+ - IE=Edge,chrome=1
37
+ Etag:
38
+ - ! '"38253efa6f6bfcb07a504b138c9d3679"'
39
+ Cache-Control:
40
+ - must-revalidate, private, max-age=0
41
+ Set-Cookie:
42
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTU3NGJlMWM1NTVhY2U5Mjk0MGQwNWRiZDFkYTdhMjI5BjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--d7359e2ce195adbe1af2a6dcb6d9357780b3774d;
43
+ path=/; HttpOnly; secure
44
+ X-Request-Id:
45
+ - 4d611a3ebc799daf080dc231d0e63397
46
+ X-Runtime:
47
+ - '0.120699'
48
+ X-Rack-Cache:
49
+ - miss
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ! '[["\"fire watch\"",1],["fire watch",1],["wells fargo",1]]'
53
+ http_version:
54
+ recorded_at: Fri, 13 Sep 2013 00:06:31 GMT
55
+ recorded_with: VCR 2.5.0