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,57 @@
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
+ 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
+ Server:
24
+ - ngx_openresty/1.2.7.8
25
+ Date:
26
+ - Fri, 13 Sep 2013 00:00:26 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Vary:
34
+ - Accept-Encoding
35
+ Status:
36
+ - 200 OK
37
+ X-Ua-Compatible:
38
+ - IE=Edge,chrome=1
39
+ Etag:
40
+ - ! '"65284cb4bc5c5c407bec9b1636d07883"'
41
+ Cache-Control:
42
+ - must-revalidate, private, max-age=0
43
+ Set-Cookie:
44
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWViNWFiOTRjYmJlNjQ0ZTA0YmRkZDg0OTBiMGFjOGI4BjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--a20c87916289c84cbde5302554a74646ff24db5e;
45
+ path=/; HttpOnly; secure
46
+ X-Request-Id:
47
+ - 64bd256bacec7bde69f559c2f56c4a06
48
+ X-Runtime:
49
+ - '0.045969'
50
+ X-Rack-Cache:
51
+ - miss
52
+ body:
53
+ encoding: US-ASCII
54
+ 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]]'
55
+ http_version:
56
+ recorded_at: Fri, 13 Sep 2013 00:00:26 GMT
57
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,57 @@
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
+ 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
+ Server:
24
+ - ngx_openresty/1.2.7.8
25
+ Date:
26
+ - Mon, 16 Sep 2013 20:18:51 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Vary:
34
+ - Accept-Encoding
35
+ Status:
36
+ - 200 OK
37
+ X-Ua-Compatible:
38
+ - IE=Edge,chrome=1
39
+ Etag:
40
+ - ! '"832ef2141a53df6109cbdff72cee0467"'
41
+ Cache-Control:
42
+ - must-revalidate, private, max-age=0
43
+ Set-Cookie:
44
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWZiYzMzZDA3YjYwYjk1ZWY4OTVkODVlNTNhMDQzNTg4BjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--d9ed9f1abd2a416ce90e9722cfe54aa373531753;
45
+ path=/; HttpOnly; secure
46
+ X-Request-Id:
47
+ - 6bc149fa640fcc0a4524e9dc3ddca8ea
48
+ X-Runtime:
49
+ - '0.043314'
50
+ X-Rack-Cache:
51
+ - miss
52
+ body:
53
+ encoding: US-ASCII
54
+ 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]]'
55
+ http_version:
56
+ recorded_at: Mon, 16 Sep 2013 20:18:51 GMT
57
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,57 @@
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
+ 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
+ Server:
24
+ - ngx_openresty/1.2.7.8
25
+ Date:
26
+ - Fri, 13 Sep 2013 00:00:26 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Vary:
34
+ - Accept-Encoding
35
+ Status:
36
+ - 200 OK
37
+ X-Ua-Compatible:
38
+ - IE=Edge,chrome=1
39
+ Etag:
40
+ - ! '"bb6f1f14aa21e669cd5b077d88e3605c"'
41
+ Cache-Control:
42
+ - must-revalidate, private, max-age=0
43
+ Set-Cookie:
44
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTE1YTZlNmExNjdiZTVmYjYzNTRkOGVjM2YxYmFkYTg1BjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--05a93dab5b67f6cbddd63fccf19def21d946aae8;
45
+ path=/; HttpOnly; secure
46
+ X-Request-Id:
47
+ - 82d71d6f6cbcd83c1eb50b5be89ce4d5
48
+ X-Runtime:
49
+ - '0.049786'
50
+ X-Rack-Cache:
51
+ - miss
52
+ body:
53
+ encoding: US-ASCII
54
+ 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]]'
55
+ http_version:
56
+ recorded_at: Fri, 13 Sep 2013 00:00:27 GMT
57
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,57 @@
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
+ 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
+ Server:
24
+ - ngx_openresty/1.2.7.8
25
+ Date:
26
+ - Mon, 16 Sep 2013 20:18:50 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Vary:
34
+ - Accept-Encoding
35
+ Status:
36
+ - 200 OK
37
+ X-Ua-Compatible:
38
+ - IE=Edge,chrome=1
39
+ Etag:
40
+ - ! '"8f1d1c7b9500cf39e6776b59eec88a4b"'
41
+ Cache-Control:
42
+ - must-revalidate, private, max-age=0
43
+ Set-Cookie:
44
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTE1NWRiM2RiOThiNDNmNWFlZWRkNzcwMTJkYjQ3ZDI2BjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--e3c95cedd74be6982994c44aea490f5bdd7c8282;
45
+ path=/; HttpOnly; secure
46
+ X-Request-Id:
47
+ - 1d86c88bc966c051dc2f5ca50499f408
48
+ X-Runtime:
49
+ - '0.273629'
50
+ X-Rack-Cache:
51
+ - miss
52
+ body:
53
+ encoding: US-ASCII
54
+ 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]]'
55
+ http_version:
56
+ recorded_at: Mon, 16 Sep 2013 20:18:50 GMT
57
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,57 @@
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
+ 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
+ Server:
24
+ - ngx_openresty/1.2.7.8
25
+ Date:
26
+ - Fri, 13 Sep 2013 00:40:33 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Vary:
34
+ - Accept-Encoding
35
+ Status:
36
+ - 200 OK
37
+ X-Ua-Compatible:
38
+ - IE=Edge,chrome=1
39
+ Etag:
40
+ - ! '"3b52d910b292efe472c5485e30ae8843"'
41
+ Cache-Control:
42
+ - must-revalidate, private, max-age=0
43
+ Set-Cookie:
44
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTMwMjU3NDJkZjhhM2RkM2I4M2VlNTZkNWQ2YThiOWFlBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--46e9833dccbb87f52f5d20893ed1a3cb4f06c2c9;
45
+ path=/; HttpOnly; secure
46
+ X-Request-Id:
47
+ - 73ec527ea4932198890c535bbb739ddc
48
+ X-Runtime:
49
+ - '0.040592'
50
+ X-Rack-Cache:
51
+ - miss
52
+ body:
53
+ encoding: US-ASCII
54
+ string: ! '[["no results",10], ["more no results",2]]'
55
+ http_version:
56
+ recorded_at: Fri, 13 Sep 2013 00:40:33 GMT
57
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,57 @@
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
+ 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
+ Server:
24
+ - ngx_openresty/1.2.7.8
25
+ Date:
26
+ - Fri, 13 Sep 2013 00:43:37 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Vary:
34
+ - Accept-Encoding
35
+ Status:
36
+ - 200 OK
37
+ X-Ua-Compatible:
38
+ - IE=Edge,chrome=1
39
+ Etag:
40
+ - ! '"d751713988987e9331980363e24189ce"'
41
+ Cache-Control:
42
+ - must-revalidate, private, max-age=0
43
+ Set-Cookie:
44
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTJkNWNkOTgxYTM1ZTQ5Y2IzZDI0NmZiYzllYjc3MmYwBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--73a80b88e68f3696ec3879190e4b50bd2ad8c79e;
45
+ path=/; HttpOnly; secure
46
+ X-Request-Id:
47
+ - e61dd55ca728a9bd718227ab8f2a83e9
48
+ X-Runtime:
49
+ - '0.163607'
50
+ X-Rack-Cache:
51
+ - miss
52
+ body:
53
+ encoding: US-ASCII
54
+ string: ! '[["no result again",2]]'
55
+ http_version:
56
+ recorded_at: Fri, 13 Sep 2013 00:43:37 GMT
57
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,57 @@
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
+ 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
+ Server:
24
+ - ngx_openresty/1.2.7.8
25
+ Date:
26
+ - Fri, 13 Sep 2013 00:06:31 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Vary:
34
+ - Accept-Encoding
35
+ Status:
36
+ - 200 OK
37
+ X-Ua-Compatible:
38
+ - IE=Edge,chrome=1
39
+ Etag:
40
+ - ! '"38253efa6f6bfcb07a504b138c9d3679"'
41
+ Cache-Control:
42
+ - must-revalidate, private, max-age=0
43
+ Set-Cookie:
44
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTU3NGJlMWM1NTVhY2U5Mjk0MGQwNWRiZDFkYTdhMjI5BjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--d7359e2ce195adbe1af2a6dcb6d9357780b3774d;
45
+ path=/; HttpOnly; secure
46
+ X-Request-Id:
47
+ - 4d611a3ebc799daf080dc231d0e63397
48
+ X-Runtime:
49
+ - '0.120699'
50
+ X-Rack-Cache:
51
+ - miss
52
+ body:
53
+ encoding: US-ASCII
54
+ string: ! '[["\"fire watch\"",1],["fire watch",1],["wells fargo",1]]'
55
+ http_version:
56
+ recorded_at: Fri, 13 Sep 2013 00:06:31 GMT
57
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://hello:@localhost:3000/api/v1/engines/recursion/analytics/top_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
+ 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
+ Server:
24
+ - ngx_openresty/1.2.7.8
25
+ Date:
26
+ - Fri, 13 Sep 2013 00:32:18 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Vary:
34
+ - Accept-Encoding
35
+ Status:
36
+ - 200 OK
37
+ X-Ua-Compatible:
38
+ - IE=Edge,chrome=1
39
+ Etag:
40
+ - ! '"5fdb334ef4f784fd2d86705c37a8d0cc"'
41
+ Cache-Control:
42
+ - must-revalidate, private, max-age=0
43
+ Set-Cookie:
44
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTMzMDM2MTBmY2U2OGQwNmYzMTI5ZDAzYWM4NzIyZmQxBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--4cda11a28565dd7de97f454d03a733638e66b33f;
45
+ path=/; HttpOnly; secure
46
+ X-Request-Id:
47
+ - 0313a1fd582b4aac934d3c87d50734f7
48
+ X-Runtime:
49
+ - '0.157479'
50
+ X-Rack-Cache:
51
+ - miss
52
+ body:
53
+ encoding: US-ASCII
54
+ string: ! '[["no simple victory",1],["email",1],["orgainizer",1],["rhodes",1],["rails",1]]'
55
+ http_version:
56
+ recorded_at: Fri, 13 Sep 2013 00:32:18 GMT
57
+ recorded_with: VCR 2.5.0