yoga_pants 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/.travis.yml +6 -0
- data/CHANGELOG.md +22 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +53 -0
- data/Rakefile +11 -0
- data/fixtures/vcr_cassettes/before_block.yml +165 -0
- data/fixtures/vcr_cassettes/bulk.yml +69 -0
- data/fixtures/vcr_cassettes/bulk_document_index_error.yml +69 -0
- data/fixtures/vcr_cassettes/bulk_error.yml +355 -0
- data/fixtures/vcr_cassettes/error.yml +290 -0
- data/fixtures/vcr_cassettes/failover_refused.yml +25 -0
- data/fixtures/vcr_cassettes/failover_timeout.yml +25 -0
- data/fixtures/vcr_cassettes/indexing.yml +48 -0
- data/fixtures/vcr_cassettes/invalid_request.yml +267 -0
- data/fixtures/vcr_cassettes/missing.yml +267 -0
- data/fixtures/vcr_cassettes/multi_search.yml +37 -0
- data/lib/yoga_pants/client.rb +144 -0
- data/lib/yoga_pants/connection.rb +150 -0
- data/lib/yoga_pants/json.rb +25 -0
- data/lib/yoga_pants/version.rb +3 -0
- data/lib/yoga_pants.rb +10 -0
- data/spec/integration/basic_spec.rb +205 -0
- data/spec/spec_helper.rb +9 -0
- data/yoga_pants.gemspec +26 -0
- metadata +138 -0
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:9200/yoga_pants_test/doc/1
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "{\"foo\":\"bar\"}"
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/x-www-form-urlencoded
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 201
|
15
|
+
message: Created
|
16
|
+
headers:
|
17
|
+
Content-Type:
|
18
|
+
- application/json; charset=UTF-8
|
19
|
+
Content-Length:
|
20
|
+
- "75"
|
21
|
+
body:
|
22
|
+
encoding: US-ASCII
|
23
|
+
string: "{\"ok\":true,\"_index\":\"yoga_pants_test\",\"_type\":\"doc\",\"_id\":\"1\",\"_version\":1}"
|
24
|
+
http_version:
|
25
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
26
|
+
- request:
|
27
|
+
method: get
|
28
|
+
uri: http://localhost:9200/yoga_pants_test/doc/1
|
29
|
+
body:
|
30
|
+
encoding: US-ASCII
|
31
|
+
string: ""
|
32
|
+
headers: {}
|
33
|
+
|
34
|
+
response:
|
35
|
+
status:
|
36
|
+
code: 200
|
37
|
+
message: OK
|
38
|
+
headers:
|
39
|
+
Content-Type:
|
40
|
+
- application/json; charset=UTF-8
|
41
|
+
Content-Length:
|
42
|
+
- "106"
|
43
|
+
body:
|
44
|
+
encoding: US-ASCII
|
45
|
+
string: "{\"_index\":\"yoga_pants_test\",\"_type\":\"doc\",\"_id\":\"1\",\"_version\":1,\"exists\":true, \"_source\" : {\"foo\":\"bar\"}}"
|
46
|
+
http_version:
|
47
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
48
|
+
recorded_with: VCR 2.2.0
|
@@ -0,0 +1,267 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:9200/this_does_not_exist
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ""
|
9
|
+
headers: {}
|
10
|
+
|
11
|
+
response:
|
12
|
+
status:
|
13
|
+
code: 400
|
14
|
+
message: Bad Request
|
15
|
+
headers:
|
16
|
+
Content-Type:
|
17
|
+
- text/plain; charset=UTF-8
|
18
|
+
Content-Length:
|
19
|
+
- "64"
|
20
|
+
body:
|
21
|
+
encoding: US-ASCII
|
22
|
+
string: No handler found for uri [/this_does_not_exist] and method [GET]
|
23
|
+
http_version:
|
24
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
25
|
+
- request:
|
26
|
+
method: get
|
27
|
+
uri: http://localhost:9200/this_does_not_exist
|
28
|
+
body:
|
29
|
+
encoding: US-ASCII
|
30
|
+
string: ""
|
31
|
+
headers: {}
|
32
|
+
|
33
|
+
response:
|
34
|
+
status:
|
35
|
+
code: 400
|
36
|
+
message: Bad Request
|
37
|
+
headers:
|
38
|
+
Content-Type:
|
39
|
+
- text/plain; charset=UTF-8
|
40
|
+
Content-Length:
|
41
|
+
- "64"
|
42
|
+
body:
|
43
|
+
encoding: US-ASCII
|
44
|
+
string: No handler found for uri [/this_does_not_exist] and method [GET]
|
45
|
+
http_version:
|
46
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
47
|
+
- request:
|
48
|
+
method: get
|
49
|
+
uri: http://localhost:9200/this_does_not_exist
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ""
|
53
|
+
headers: {}
|
54
|
+
|
55
|
+
response:
|
56
|
+
status:
|
57
|
+
code: 400
|
58
|
+
message: Bad Request
|
59
|
+
headers:
|
60
|
+
Content-Type:
|
61
|
+
- text/plain; charset=UTF-8
|
62
|
+
Content-Length:
|
63
|
+
- "64"
|
64
|
+
body:
|
65
|
+
encoding: US-ASCII
|
66
|
+
string: No handler found for uri [/this_does_not_exist] and method [GET]
|
67
|
+
http_version:
|
68
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
69
|
+
- request:
|
70
|
+
method: get
|
71
|
+
uri: http://localhost:9200/this_does_not_exist
|
72
|
+
body:
|
73
|
+
encoding: US-ASCII
|
74
|
+
string: ""
|
75
|
+
headers: {}
|
76
|
+
|
77
|
+
response:
|
78
|
+
status:
|
79
|
+
code: 400
|
80
|
+
message: Bad Request
|
81
|
+
headers:
|
82
|
+
Content-Type:
|
83
|
+
- text/plain; charset=UTF-8
|
84
|
+
Content-Length:
|
85
|
+
- "64"
|
86
|
+
body:
|
87
|
+
encoding: US-ASCII
|
88
|
+
string: No handler found for uri [/this_does_not_exist] and method [GET]
|
89
|
+
http_version:
|
90
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
91
|
+
- request:
|
92
|
+
method: get
|
93
|
+
uri: http://localhost:9200/this_does_not_exist
|
94
|
+
body:
|
95
|
+
encoding: US-ASCII
|
96
|
+
string: ""
|
97
|
+
headers: {}
|
98
|
+
|
99
|
+
response:
|
100
|
+
status:
|
101
|
+
code: 400
|
102
|
+
message: Bad Request
|
103
|
+
headers:
|
104
|
+
Content-Type:
|
105
|
+
- text/plain; charset=UTF-8
|
106
|
+
Content-Length:
|
107
|
+
- "64"
|
108
|
+
body:
|
109
|
+
encoding: US-ASCII
|
110
|
+
string: No handler found for uri [/this_does_not_exist] and method [GET]
|
111
|
+
http_version:
|
112
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
113
|
+
- request:
|
114
|
+
method: get
|
115
|
+
uri: http://localhost:9200/this_does_not_exist
|
116
|
+
body:
|
117
|
+
encoding: US-ASCII
|
118
|
+
string: ""
|
119
|
+
headers: {}
|
120
|
+
|
121
|
+
response:
|
122
|
+
status:
|
123
|
+
code: 400
|
124
|
+
message: Bad Request
|
125
|
+
headers:
|
126
|
+
Content-Type:
|
127
|
+
- text/plain; charset=UTF-8
|
128
|
+
Content-Length:
|
129
|
+
- "64"
|
130
|
+
body:
|
131
|
+
encoding: US-ASCII
|
132
|
+
string: No handler found for uri [/this_does_not_exist] and method [GET]
|
133
|
+
http_version:
|
134
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
135
|
+
- request:
|
136
|
+
method: get
|
137
|
+
uri: http://localhost:9200/this_does_not_exist
|
138
|
+
body:
|
139
|
+
encoding: US-ASCII
|
140
|
+
string: ""
|
141
|
+
headers: {}
|
142
|
+
|
143
|
+
response:
|
144
|
+
status:
|
145
|
+
code: 400
|
146
|
+
message: Bad Request
|
147
|
+
headers:
|
148
|
+
Content-Type:
|
149
|
+
- text/plain; charset=UTF-8
|
150
|
+
Content-Length:
|
151
|
+
- "64"
|
152
|
+
body:
|
153
|
+
encoding: US-ASCII
|
154
|
+
string: No handler found for uri [/this_does_not_exist] and method [GET]
|
155
|
+
http_version:
|
156
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
157
|
+
- request:
|
158
|
+
method: get
|
159
|
+
uri: http://localhost:9200/this_does_not_exist
|
160
|
+
body:
|
161
|
+
encoding: US-ASCII
|
162
|
+
string: ""
|
163
|
+
headers: {}
|
164
|
+
|
165
|
+
response:
|
166
|
+
status:
|
167
|
+
code: 400
|
168
|
+
message: Bad Request
|
169
|
+
headers:
|
170
|
+
Content-Type:
|
171
|
+
- text/plain; charset=UTF-8
|
172
|
+
Content-Length:
|
173
|
+
- "64"
|
174
|
+
body:
|
175
|
+
encoding: US-ASCII
|
176
|
+
string: No handler found for uri [/this_does_not_exist] and method [GET]
|
177
|
+
http_version:
|
178
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
179
|
+
- request:
|
180
|
+
method: get
|
181
|
+
uri: http://localhost:9200/this_does_not_exist
|
182
|
+
body:
|
183
|
+
encoding: US-ASCII
|
184
|
+
string: ""
|
185
|
+
headers: {}
|
186
|
+
|
187
|
+
response:
|
188
|
+
status:
|
189
|
+
code: 400
|
190
|
+
message: Bad Request
|
191
|
+
headers:
|
192
|
+
Content-Type:
|
193
|
+
- text/plain; charset=UTF-8
|
194
|
+
Content-Length:
|
195
|
+
- "64"
|
196
|
+
body:
|
197
|
+
encoding: US-ASCII
|
198
|
+
string: No handler found for uri [/this_does_not_exist] and method [GET]
|
199
|
+
http_version:
|
200
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
201
|
+
- request:
|
202
|
+
method: get
|
203
|
+
uri: http://localhost:9200/this_does_not_exist
|
204
|
+
body:
|
205
|
+
encoding: US-ASCII
|
206
|
+
string: ""
|
207
|
+
headers: {}
|
208
|
+
|
209
|
+
response:
|
210
|
+
status:
|
211
|
+
code: 400
|
212
|
+
message: Bad Request
|
213
|
+
headers:
|
214
|
+
Content-Type:
|
215
|
+
- text/plain; charset=UTF-8
|
216
|
+
Content-Length:
|
217
|
+
- "64"
|
218
|
+
body:
|
219
|
+
encoding: US-ASCII
|
220
|
+
string: No handler found for uri [/this_does_not_exist] and method [GET]
|
221
|
+
http_version:
|
222
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
223
|
+
- request:
|
224
|
+
method: get
|
225
|
+
uri: http://localhost:9200/this_does_not_exist
|
226
|
+
body:
|
227
|
+
encoding: US-ASCII
|
228
|
+
string: ""
|
229
|
+
headers: {}
|
230
|
+
|
231
|
+
response:
|
232
|
+
status:
|
233
|
+
code: 400
|
234
|
+
message: Bad Request
|
235
|
+
headers:
|
236
|
+
Content-Type:
|
237
|
+
- text/plain; charset=UTF-8
|
238
|
+
Content-Length:
|
239
|
+
- "64"
|
240
|
+
body:
|
241
|
+
encoding: US-ASCII
|
242
|
+
string: No handler found for uri [/this_does_not_exist] and method [GET]
|
243
|
+
http_version:
|
244
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
245
|
+
- request:
|
246
|
+
method: get
|
247
|
+
uri: http://localhost:9200/this_does_not_exist
|
248
|
+
body:
|
249
|
+
encoding: US-ASCII
|
250
|
+
string: ""
|
251
|
+
headers: {}
|
252
|
+
|
253
|
+
response:
|
254
|
+
status:
|
255
|
+
code: 400
|
256
|
+
message: Bad Request
|
257
|
+
headers:
|
258
|
+
Content-Type:
|
259
|
+
- text/plain; charset=UTF-8
|
260
|
+
Content-Length:
|
261
|
+
- "64"
|
262
|
+
body:
|
263
|
+
encoding: US-ASCII
|
264
|
+
string: No handler found for uri [/this_does_not_exist] and method [GET]
|
265
|
+
http_version:
|
266
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
267
|
+
recorded_with: VCR 2.2.0
|
@@ -0,0 +1,267 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:9200/yoga_pants_test/doc/not_exist
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ""
|
9
|
+
headers: {}
|
10
|
+
|
11
|
+
response:
|
12
|
+
status:
|
13
|
+
code: 404
|
14
|
+
message: Not Found
|
15
|
+
headers:
|
16
|
+
Content-Type:
|
17
|
+
- application/json; charset=UTF-8
|
18
|
+
Content-Length:
|
19
|
+
- "75"
|
20
|
+
body:
|
21
|
+
encoding: US-ASCII
|
22
|
+
string: "{\"_index\":\"yoga_pants_test\",\"_type\":\"doc\",\"_id\":\"not_exist\",\"exists\":false}"
|
23
|
+
http_version:
|
24
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
25
|
+
- request:
|
26
|
+
method: get
|
27
|
+
uri: http://localhost:9200/yoga_pants_test/doc/not_exist
|
28
|
+
body:
|
29
|
+
encoding: US-ASCII
|
30
|
+
string: ""
|
31
|
+
headers: {}
|
32
|
+
|
33
|
+
response:
|
34
|
+
status:
|
35
|
+
code: 404
|
36
|
+
message: Not Found
|
37
|
+
headers:
|
38
|
+
Content-Type:
|
39
|
+
- application/json; charset=UTF-8
|
40
|
+
Content-Length:
|
41
|
+
- "75"
|
42
|
+
body:
|
43
|
+
encoding: US-ASCII
|
44
|
+
string: "{\"_index\":\"yoga_pants_test\",\"_type\":\"doc\",\"_id\":\"not_exist\",\"exists\":false}"
|
45
|
+
http_version:
|
46
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
47
|
+
- request:
|
48
|
+
method: get
|
49
|
+
uri: http://localhost:9200/yoga_pants_test/doc/not_exist
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ""
|
53
|
+
headers: {}
|
54
|
+
|
55
|
+
response:
|
56
|
+
status:
|
57
|
+
code: 404
|
58
|
+
message: Not Found
|
59
|
+
headers:
|
60
|
+
Content-Type:
|
61
|
+
- application/json; charset=UTF-8
|
62
|
+
Content-Length:
|
63
|
+
- "75"
|
64
|
+
body:
|
65
|
+
encoding: US-ASCII
|
66
|
+
string: "{\"_index\":\"yoga_pants_test\",\"_type\":\"doc\",\"_id\":\"not_exist\",\"exists\":false}"
|
67
|
+
http_version:
|
68
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
69
|
+
- request:
|
70
|
+
method: get
|
71
|
+
uri: http://localhost:9200/yoga_pants_test/doc/not_exist
|
72
|
+
body:
|
73
|
+
encoding: US-ASCII
|
74
|
+
string: ""
|
75
|
+
headers: {}
|
76
|
+
|
77
|
+
response:
|
78
|
+
status:
|
79
|
+
code: 404
|
80
|
+
message: Not Found
|
81
|
+
headers:
|
82
|
+
Content-Type:
|
83
|
+
- application/json; charset=UTF-8
|
84
|
+
Content-Length:
|
85
|
+
- "75"
|
86
|
+
body:
|
87
|
+
encoding: US-ASCII
|
88
|
+
string: "{\"_index\":\"yoga_pants_test\",\"_type\":\"doc\",\"_id\":\"not_exist\",\"exists\":false}"
|
89
|
+
http_version:
|
90
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
91
|
+
- request:
|
92
|
+
method: get
|
93
|
+
uri: http://localhost:9200/yoga_pants_test/doc/not_exist
|
94
|
+
body:
|
95
|
+
encoding: US-ASCII
|
96
|
+
string: ""
|
97
|
+
headers: {}
|
98
|
+
|
99
|
+
response:
|
100
|
+
status:
|
101
|
+
code: 404
|
102
|
+
message: Not Found
|
103
|
+
headers:
|
104
|
+
Content-Type:
|
105
|
+
- application/json; charset=UTF-8
|
106
|
+
Content-Length:
|
107
|
+
- "75"
|
108
|
+
body:
|
109
|
+
encoding: US-ASCII
|
110
|
+
string: "{\"_index\":\"yoga_pants_test\",\"_type\":\"doc\",\"_id\":\"not_exist\",\"exists\":false}"
|
111
|
+
http_version:
|
112
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
113
|
+
- request:
|
114
|
+
method: get
|
115
|
+
uri: http://localhost:9200/yoga_pants_test/doc/not_exist
|
116
|
+
body:
|
117
|
+
encoding: US-ASCII
|
118
|
+
string: ""
|
119
|
+
headers: {}
|
120
|
+
|
121
|
+
response:
|
122
|
+
status:
|
123
|
+
code: 404
|
124
|
+
message: Not Found
|
125
|
+
headers:
|
126
|
+
Content-Type:
|
127
|
+
- application/json; charset=UTF-8
|
128
|
+
Content-Length:
|
129
|
+
- "75"
|
130
|
+
body:
|
131
|
+
encoding: US-ASCII
|
132
|
+
string: "{\"_index\":\"yoga_pants_test\",\"_type\":\"doc\",\"_id\":\"not_exist\",\"exists\":false}"
|
133
|
+
http_version:
|
134
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
135
|
+
- request:
|
136
|
+
method: get
|
137
|
+
uri: http://localhost:9200/yoga_pants_test/doc/not_exist
|
138
|
+
body:
|
139
|
+
encoding: US-ASCII
|
140
|
+
string: ""
|
141
|
+
headers: {}
|
142
|
+
|
143
|
+
response:
|
144
|
+
status:
|
145
|
+
code: 404
|
146
|
+
message: Not Found
|
147
|
+
headers:
|
148
|
+
Content-Type:
|
149
|
+
- application/json; charset=UTF-8
|
150
|
+
Content-Length:
|
151
|
+
- "75"
|
152
|
+
body:
|
153
|
+
encoding: US-ASCII
|
154
|
+
string: "{\"_index\":\"yoga_pants_test\",\"_type\":\"doc\",\"_id\":\"not_exist\",\"exists\":false}"
|
155
|
+
http_version:
|
156
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
157
|
+
- request:
|
158
|
+
method: get
|
159
|
+
uri: http://localhost:9200/yoga_pants_test/doc/not_exist
|
160
|
+
body:
|
161
|
+
encoding: US-ASCII
|
162
|
+
string: ""
|
163
|
+
headers: {}
|
164
|
+
|
165
|
+
response:
|
166
|
+
status:
|
167
|
+
code: 404
|
168
|
+
message: Not Found
|
169
|
+
headers:
|
170
|
+
Content-Type:
|
171
|
+
- application/json; charset=UTF-8
|
172
|
+
Content-Length:
|
173
|
+
- "75"
|
174
|
+
body:
|
175
|
+
encoding: US-ASCII
|
176
|
+
string: "{\"_index\":\"yoga_pants_test\",\"_type\":\"doc\",\"_id\":\"not_exist\",\"exists\":false}"
|
177
|
+
http_version:
|
178
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
179
|
+
- request:
|
180
|
+
method: get
|
181
|
+
uri: http://localhost:9200/yoga_pants_test/doc/not_exist
|
182
|
+
body:
|
183
|
+
encoding: US-ASCII
|
184
|
+
string: ""
|
185
|
+
headers: {}
|
186
|
+
|
187
|
+
response:
|
188
|
+
status:
|
189
|
+
code: 404
|
190
|
+
message: Not Found
|
191
|
+
headers:
|
192
|
+
Content-Type:
|
193
|
+
- application/json; charset=UTF-8
|
194
|
+
Content-Length:
|
195
|
+
- "75"
|
196
|
+
body:
|
197
|
+
encoding: US-ASCII
|
198
|
+
string: "{\"_index\":\"yoga_pants_test\",\"_type\":\"doc\",\"_id\":\"not_exist\",\"exists\":false}"
|
199
|
+
http_version:
|
200
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
201
|
+
- request:
|
202
|
+
method: get
|
203
|
+
uri: http://localhost:9200/yoga_pants_test/doc/not_exist
|
204
|
+
body:
|
205
|
+
encoding: US-ASCII
|
206
|
+
string: ""
|
207
|
+
headers: {}
|
208
|
+
|
209
|
+
response:
|
210
|
+
status:
|
211
|
+
code: 404
|
212
|
+
message: Not Found
|
213
|
+
headers:
|
214
|
+
Content-Type:
|
215
|
+
- application/json; charset=UTF-8
|
216
|
+
Content-Length:
|
217
|
+
- "75"
|
218
|
+
body:
|
219
|
+
encoding: US-ASCII
|
220
|
+
string: "{\"_index\":\"yoga_pants_test\",\"_type\":\"doc\",\"_id\":\"not_exist\",\"exists\":false}"
|
221
|
+
http_version:
|
222
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
223
|
+
- request:
|
224
|
+
method: get
|
225
|
+
uri: http://localhost:9200/yoga_pants_test/doc/not_exist
|
226
|
+
body:
|
227
|
+
encoding: US-ASCII
|
228
|
+
string: ""
|
229
|
+
headers: {}
|
230
|
+
|
231
|
+
response:
|
232
|
+
status:
|
233
|
+
code: 404
|
234
|
+
message: Not Found
|
235
|
+
headers:
|
236
|
+
Content-Type:
|
237
|
+
- application/json; charset=UTF-8
|
238
|
+
Content-Length:
|
239
|
+
- "75"
|
240
|
+
body:
|
241
|
+
encoding: US-ASCII
|
242
|
+
string: "{\"_index\":\"yoga_pants_test\",\"_type\":\"doc\",\"_id\":\"not_exist\",\"exists\":false}"
|
243
|
+
http_version:
|
244
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
245
|
+
- request:
|
246
|
+
method: get
|
247
|
+
uri: http://localhost:9200/yoga_pants_test/doc/not_exist
|
248
|
+
body:
|
249
|
+
encoding: US-ASCII
|
250
|
+
string: ""
|
251
|
+
headers: {}
|
252
|
+
|
253
|
+
response:
|
254
|
+
status:
|
255
|
+
code: 404
|
256
|
+
message: Not Found
|
257
|
+
headers:
|
258
|
+
Content-Type:
|
259
|
+
- application/json; charset=UTF-8
|
260
|
+
Content-Length:
|
261
|
+
- "75"
|
262
|
+
body:
|
263
|
+
encoding: US-ASCII
|
264
|
+
string: "{\"_index\":\"yoga_pants_test\",\"_type\":\"doc\",\"_id\":\"not_exist\",\"exists\":false}"
|
265
|
+
http_version:
|
266
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
267
|
+
recorded_with: VCR 2.2.0
|
@@ -0,0 +1,37 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:9200/_msearch?
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"index":"yoga_pants_test","type":"doc"}
|
9
|
+
|
10
|
+
{"query":{"match_all":{}}}
|
11
|
+
|
12
|
+
{"index":"yoga_pants_test_1","type":"doc2"}
|
13
|
+
|
14
|
+
{"query":{"match_all":{}}}
|
15
|
+
|
16
|
+
'
|
17
|
+
headers: {}
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: !binary |-
|
22
|
+
T0s=
|
23
|
+
headers:
|
24
|
+
!binary "Q29udGVudC1UeXBl":
|
25
|
+
- !binary |-
|
26
|
+
YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD1VVEYtOA==
|
27
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
28
|
+
- !binary |-
|
29
|
+
NDUy
|
30
|
+
body:
|
31
|
+
encoding: US-ASCII
|
32
|
+
string: ! '{"responses":[{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"yoga_pants_test","_type":"doc","_id":"2","_score":1.0,
|
33
|
+
"_source" : {"title": "aaa"}}]}},{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"yoga_pants_test_1","_type":"doc2","_id":"2","_score":1.0,
|
34
|
+
"_source" : {"title": "bbb"}}]}}]}'
|
35
|
+
http_version:
|
36
|
+
recorded_at: Tue, 14 Aug 2012 15:37:56 GMT
|
37
|
+
recorded_with: VCR 2.2.4
|