yoga_pants 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,355 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: http://localhost:9200/_bulk?
|
|
6
|
+
body:
|
|
7
|
+
string: |
|
|
8
|
+
{"index":{"_id":1,"_type":"doc","_index":"yoga_pants_test"}}
|
|
9
|
+
{"bar":1}
|
|
10
|
+
{"index":{"_id":2,"_type":"doc","_index":""}}
|
|
11
|
+
{"bar":"invalid"}
|
|
12
|
+
|
|
13
|
+
headers:
|
|
14
|
+
Content-Type:
|
|
15
|
+
- application/x-www-form-urlencoded
|
|
16
|
+
response:
|
|
17
|
+
status:
|
|
18
|
+
code: 500
|
|
19
|
+
message: Internal Server Error
|
|
20
|
+
headers:
|
|
21
|
+
Content-Length:
|
|
22
|
+
- "150"
|
|
23
|
+
Content-Type:
|
|
24
|
+
- application/json; charset=UTF-8
|
|
25
|
+
body:
|
|
26
|
+
string: "{\"error\":\"ElasticSearchException[String index out of range: 0]; nested: StringIndexOutOfBoundsException[String index out of range: 0]; \",\"status\":500}"
|
|
27
|
+
http_version:
|
|
28
|
+
recorded_at: Wed, 29 Aug 2012 07:04:09 GMT
|
|
29
|
+
- request:
|
|
30
|
+
method: post
|
|
31
|
+
uri: http://localhost:9200/_bulk?
|
|
32
|
+
body:
|
|
33
|
+
string: |
|
|
34
|
+
{"index":{"_id":1,"_type":"doc","_index":"yoga_pants_test"}}
|
|
35
|
+
{"bar":1}
|
|
36
|
+
{"index":{"_id":2,"_type":"doc","_index":""}}
|
|
37
|
+
{"bar":"invalid"}
|
|
38
|
+
|
|
39
|
+
headers:
|
|
40
|
+
Content-Type:
|
|
41
|
+
- application/x-www-form-urlencoded
|
|
42
|
+
response:
|
|
43
|
+
status:
|
|
44
|
+
code: 500
|
|
45
|
+
message: Internal Server Error
|
|
46
|
+
headers:
|
|
47
|
+
Content-Length:
|
|
48
|
+
- "150"
|
|
49
|
+
Content-Type:
|
|
50
|
+
- application/json; charset=UTF-8
|
|
51
|
+
body:
|
|
52
|
+
string: "{\"error\":\"ElasticSearchException[String index out of range: 0]; nested: StringIndexOutOfBoundsException[String index out of range: 0]; \",\"status\":500}"
|
|
53
|
+
http_version:
|
|
54
|
+
recorded_at: Wed, 29 Aug 2012 07:04:09 GMT
|
|
55
|
+
- request:
|
|
56
|
+
method: post
|
|
57
|
+
uri: http://localhost:9200/_bulk?
|
|
58
|
+
body:
|
|
59
|
+
string: |
|
|
60
|
+
{"index":{"_id":1,"_type":"doc","_index":"yoga_pants_test"}}
|
|
61
|
+
{"bar":1}
|
|
62
|
+
{"index":{"_id":2,"_type":"doc","_index":""}}
|
|
63
|
+
{"bar":"invalid"}
|
|
64
|
+
|
|
65
|
+
headers:
|
|
66
|
+
Content-Type:
|
|
67
|
+
- application/x-www-form-urlencoded
|
|
68
|
+
response:
|
|
69
|
+
status:
|
|
70
|
+
code: 500
|
|
71
|
+
message: Internal Server Error
|
|
72
|
+
headers:
|
|
73
|
+
Content-Length:
|
|
74
|
+
- "150"
|
|
75
|
+
Content-Type:
|
|
76
|
+
- application/json; charset=UTF-8
|
|
77
|
+
body:
|
|
78
|
+
string: "{\"error\":\"ElasticSearchException[String index out of range: 0]; nested: StringIndexOutOfBoundsException[String index out of range: 0]; \",\"status\":500}"
|
|
79
|
+
http_version:
|
|
80
|
+
recorded_at: Wed, 29 Aug 2012 07:04:09 GMT
|
|
81
|
+
- request:
|
|
82
|
+
method: post
|
|
83
|
+
uri: http://localhost:9200/_bulk?
|
|
84
|
+
body:
|
|
85
|
+
string: |
|
|
86
|
+
{"index":{"_id":1,"_type":"doc","_index":"yoga_pants_test"}}
|
|
87
|
+
{"bar":1}
|
|
88
|
+
{"index":{"_id":2,"_type":"doc","_index":""}}
|
|
89
|
+
{"bar":"invalid"}
|
|
90
|
+
|
|
91
|
+
headers:
|
|
92
|
+
Content-Type:
|
|
93
|
+
- application/x-www-form-urlencoded
|
|
94
|
+
response:
|
|
95
|
+
status:
|
|
96
|
+
code: 500
|
|
97
|
+
message: Internal Server Error
|
|
98
|
+
headers:
|
|
99
|
+
Content-Length:
|
|
100
|
+
- "150"
|
|
101
|
+
Content-Type:
|
|
102
|
+
- application/json; charset=UTF-8
|
|
103
|
+
body:
|
|
104
|
+
string: "{\"error\":\"ElasticSearchException[String index out of range: 0]; nested: StringIndexOutOfBoundsException[String index out of range: 0]; \",\"status\":500}"
|
|
105
|
+
http_version:
|
|
106
|
+
recorded_at: Wed, 29 Aug 2012 07:04:09 GMT
|
|
107
|
+
- request:
|
|
108
|
+
method: post
|
|
109
|
+
uri: http://localhost:9200/_bulk?
|
|
110
|
+
body:
|
|
111
|
+
string: |
|
|
112
|
+
{"index":{"_id":1,"_type":"doc","_index":"yoga_pants_test"}}
|
|
113
|
+
{"bar":1}
|
|
114
|
+
{"index":{"_id":2,"_type":"doc","_index":""}}
|
|
115
|
+
{"bar":"invalid"}
|
|
116
|
+
|
|
117
|
+
headers:
|
|
118
|
+
Content-Type:
|
|
119
|
+
- application/x-www-form-urlencoded
|
|
120
|
+
response:
|
|
121
|
+
status:
|
|
122
|
+
code: 500
|
|
123
|
+
message: Internal Server Error
|
|
124
|
+
headers:
|
|
125
|
+
Content-Length:
|
|
126
|
+
- "150"
|
|
127
|
+
Content-Type:
|
|
128
|
+
- application/json; charset=UTF-8
|
|
129
|
+
body:
|
|
130
|
+
string: "{\"error\":\"ElasticSearchException[String index out of range: 0]; nested: StringIndexOutOfBoundsException[String index out of range: 0]; \",\"status\":500}"
|
|
131
|
+
http_version:
|
|
132
|
+
recorded_at: Wed, 29 Aug 2012 07:04:09 GMT
|
|
133
|
+
- request:
|
|
134
|
+
method: post
|
|
135
|
+
uri: http://localhost:9200/_bulk?
|
|
136
|
+
body:
|
|
137
|
+
string: |
|
|
138
|
+
{"index":{"_id":1,"_type":"doc","_index":"yoga_pants_test"}}
|
|
139
|
+
{"bar":1}
|
|
140
|
+
{"index":{"_id":2,"_type":"doc","_index":""}}
|
|
141
|
+
{"bar":"invalid"}
|
|
142
|
+
|
|
143
|
+
headers:
|
|
144
|
+
Content-Type:
|
|
145
|
+
- application/x-www-form-urlencoded
|
|
146
|
+
response:
|
|
147
|
+
status:
|
|
148
|
+
code: 500
|
|
149
|
+
message: Internal Server Error
|
|
150
|
+
headers:
|
|
151
|
+
Content-Length:
|
|
152
|
+
- "150"
|
|
153
|
+
Content-Type:
|
|
154
|
+
- application/json; charset=UTF-8
|
|
155
|
+
body:
|
|
156
|
+
string: "{\"error\":\"ElasticSearchException[String index out of range: 0]; nested: StringIndexOutOfBoundsException[String index out of range: 0]; \",\"status\":500}"
|
|
157
|
+
http_version:
|
|
158
|
+
recorded_at: Wed, 29 Aug 2012 07:04:09 GMT
|
|
159
|
+
- request:
|
|
160
|
+
method: post
|
|
161
|
+
uri: http://localhost:9200/_bulk?
|
|
162
|
+
body:
|
|
163
|
+
string: |
|
|
164
|
+
{"index":{"_id":1,"_type":"doc","_index":"yoga_pants_test"}}
|
|
165
|
+
{"bar":1}
|
|
166
|
+
{"index":{"_id":2,"_type":"doc","_index":""}}
|
|
167
|
+
{"bar":"invalid"}
|
|
168
|
+
|
|
169
|
+
headers:
|
|
170
|
+
Content-Type:
|
|
171
|
+
- application/x-www-form-urlencoded
|
|
172
|
+
response:
|
|
173
|
+
status:
|
|
174
|
+
code: 500
|
|
175
|
+
message: Internal Server Error
|
|
176
|
+
headers:
|
|
177
|
+
Content-Length:
|
|
178
|
+
- "150"
|
|
179
|
+
Content-Type:
|
|
180
|
+
- application/json; charset=UTF-8
|
|
181
|
+
body:
|
|
182
|
+
string: "{\"error\":\"ElasticSearchException[String index out of range: 0]; nested: StringIndexOutOfBoundsException[String index out of range: 0]; \",\"status\":500}"
|
|
183
|
+
http_version:
|
|
184
|
+
recorded_at: Wed, 29 Aug 2012 07:04:09 GMT
|
|
185
|
+
- request:
|
|
186
|
+
method: post
|
|
187
|
+
uri: http://localhost:9200/_bulk?
|
|
188
|
+
body:
|
|
189
|
+
string: |
|
|
190
|
+
{"index":{"_id":1,"_type":"doc","_index":"yoga_pants_test"}}
|
|
191
|
+
{"bar":1}
|
|
192
|
+
{"index":{"_id":2,"_type":"doc","_index":""}}
|
|
193
|
+
{"bar":"invalid"}
|
|
194
|
+
|
|
195
|
+
headers:
|
|
196
|
+
Content-Type:
|
|
197
|
+
- application/x-www-form-urlencoded
|
|
198
|
+
response:
|
|
199
|
+
status:
|
|
200
|
+
code: 500
|
|
201
|
+
message: Internal Server Error
|
|
202
|
+
headers:
|
|
203
|
+
Content-Length:
|
|
204
|
+
- "150"
|
|
205
|
+
Content-Type:
|
|
206
|
+
- application/json; charset=UTF-8
|
|
207
|
+
body:
|
|
208
|
+
string: "{\"error\":\"ElasticSearchException[String index out of range: 0]; nested: StringIndexOutOfBoundsException[String index out of range: 0]; \",\"status\":500}"
|
|
209
|
+
http_version:
|
|
210
|
+
recorded_at: Wed, 29 Aug 2012 07:04:09 GMT
|
|
211
|
+
- request:
|
|
212
|
+
method: post
|
|
213
|
+
uri: http://localhost:9200/_bulk?
|
|
214
|
+
body:
|
|
215
|
+
string: |
|
|
216
|
+
{"index":{"_id":1,"_type":"doc","_index":"yoga_pants_test"}}
|
|
217
|
+
{"bar":1}
|
|
218
|
+
{"index":{"_id":2,"_type":"doc","_index":""}}
|
|
219
|
+
{"bar":"invalid"}
|
|
220
|
+
|
|
221
|
+
headers:
|
|
222
|
+
Content-Type:
|
|
223
|
+
- application/x-www-form-urlencoded
|
|
224
|
+
response:
|
|
225
|
+
status:
|
|
226
|
+
code: 500
|
|
227
|
+
message: Internal Server Error
|
|
228
|
+
headers:
|
|
229
|
+
Content-Length:
|
|
230
|
+
- "150"
|
|
231
|
+
Content-Type:
|
|
232
|
+
- application/json; charset=UTF-8
|
|
233
|
+
body:
|
|
234
|
+
string: "{\"error\":\"ElasticSearchException[String index out of range: 0]; nested: StringIndexOutOfBoundsException[String index out of range: 0]; \",\"status\":500}"
|
|
235
|
+
http_version:
|
|
236
|
+
recorded_at: Wed, 29 Aug 2012 07:04:10 GMT
|
|
237
|
+
- request:
|
|
238
|
+
method: post
|
|
239
|
+
uri: http://localhost:9200/_bulk?
|
|
240
|
+
body:
|
|
241
|
+
string: |
|
|
242
|
+
{"index":{"_id":1,"_type":"doc","_index":"yoga_pants_test"}}
|
|
243
|
+
{"bar":1}
|
|
244
|
+
{"index":{"_id":2,"_type":"doc","_index":""}}
|
|
245
|
+
{"bar":"invalid"}
|
|
246
|
+
|
|
247
|
+
headers:
|
|
248
|
+
Content-Type:
|
|
249
|
+
- application/x-www-form-urlencoded
|
|
250
|
+
response:
|
|
251
|
+
status:
|
|
252
|
+
code: 500
|
|
253
|
+
message: Internal Server Error
|
|
254
|
+
headers:
|
|
255
|
+
Content-Length:
|
|
256
|
+
- "150"
|
|
257
|
+
Content-Type:
|
|
258
|
+
- application/json; charset=UTF-8
|
|
259
|
+
body:
|
|
260
|
+
string: "{\"error\":\"ElasticSearchException[String index out of range: 0]; nested: StringIndexOutOfBoundsException[String index out of range: 0]; \",\"status\":500}"
|
|
261
|
+
http_version:
|
|
262
|
+
recorded_at: Wed, 29 Aug 2012 07:04:10 GMT
|
|
263
|
+
- request:
|
|
264
|
+
method: post
|
|
265
|
+
uri: http://localhost:9200/_bulk?
|
|
266
|
+
body:
|
|
267
|
+
string: |
|
|
268
|
+
{"index":{"_id":1,"_type":"doc","_index":"yoga_pants_test"}}
|
|
269
|
+
{"bar":1}
|
|
270
|
+
{"index":{"_id":2,"_type":"doc","_index":""}}
|
|
271
|
+
{"bar":"invalid"}
|
|
272
|
+
|
|
273
|
+
headers:
|
|
274
|
+
Content-Type:
|
|
275
|
+
- application/x-www-form-urlencoded
|
|
276
|
+
response:
|
|
277
|
+
status:
|
|
278
|
+
code: 500
|
|
279
|
+
message: Internal Server Error
|
|
280
|
+
headers:
|
|
281
|
+
Content-Length:
|
|
282
|
+
- "150"
|
|
283
|
+
Content-Type:
|
|
284
|
+
- application/json; charset=UTF-8
|
|
285
|
+
body:
|
|
286
|
+
string: "{\"error\":\"ElasticSearchException[String index out of range: 0]; nested: StringIndexOutOfBoundsException[String index out of range: 0]; \",\"status\":500}"
|
|
287
|
+
http_version:
|
|
288
|
+
recorded_at: Wed, 29 Aug 2012 07:04:10 GMT
|
|
289
|
+
- request:
|
|
290
|
+
method: post
|
|
291
|
+
uri: http://localhost:9200/_bulk?
|
|
292
|
+
body:
|
|
293
|
+
string: |
|
|
294
|
+
{"index":{"_id":1,"_type":"doc","_index":"yoga_pants_test"}}
|
|
295
|
+
{"bar":1}
|
|
296
|
+
{"index":{"_id":2,"_type":"doc","_index":""}}
|
|
297
|
+
{"bar":"invalid"}
|
|
298
|
+
|
|
299
|
+
headers:
|
|
300
|
+
Content-Type:
|
|
301
|
+
- application/x-www-form-urlencoded
|
|
302
|
+
response:
|
|
303
|
+
status:
|
|
304
|
+
code: 500
|
|
305
|
+
message: Internal Server Error
|
|
306
|
+
headers:
|
|
307
|
+
Content-Length:
|
|
308
|
+
- "150"
|
|
309
|
+
Content-Type:
|
|
310
|
+
- application/json; charset=UTF-8
|
|
311
|
+
body:
|
|
312
|
+
string: "{\"error\":\"ElasticSearchException[String index out of range: 0]; nested: StringIndexOutOfBoundsException[String index out of range: 0]; \",\"status\":500}"
|
|
313
|
+
http_version:
|
|
314
|
+
recorded_at: Wed, 29 Aug 2012 07:04:10 GMT
|
|
315
|
+
- request:
|
|
316
|
+
method: get
|
|
317
|
+
uri: http://localhost:9200/yoga_pants_test/doc/1
|
|
318
|
+
body:
|
|
319
|
+
string: ""
|
|
320
|
+
headers: {}
|
|
321
|
+
|
|
322
|
+
response:
|
|
323
|
+
status:
|
|
324
|
+
code: 404
|
|
325
|
+
message: Not Found
|
|
326
|
+
headers:
|
|
327
|
+
Content-Length:
|
|
328
|
+
- "67"
|
|
329
|
+
Content-Type:
|
|
330
|
+
- application/json; charset=UTF-8
|
|
331
|
+
body:
|
|
332
|
+
string: "{\"_index\":\"yoga_pants_test\",\"_type\":\"doc\",\"_id\":\"1\",\"exists\":false}"
|
|
333
|
+
http_version:
|
|
334
|
+
recorded_at: Wed, 29 Aug 2012 07:04:10 GMT
|
|
335
|
+
- request:
|
|
336
|
+
method: get
|
|
337
|
+
uri: http://localhost:9200/yoga_pants_test/doc/2
|
|
338
|
+
body:
|
|
339
|
+
string: ""
|
|
340
|
+
headers: {}
|
|
341
|
+
|
|
342
|
+
response:
|
|
343
|
+
status:
|
|
344
|
+
code: 404
|
|
345
|
+
message: Not Found
|
|
346
|
+
headers:
|
|
347
|
+
Content-Length:
|
|
348
|
+
- "67"
|
|
349
|
+
Content-Type:
|
|
350
|
+
- application/json; charset=UTF-8
|
|
351
|
+
body:
|
|
352
|
+
string: "{\"_index\":\"yoga_pants_test\",\"_type\":\"doc\",\"_id\":\"2\",\"exists\":false}"
|
|
353
|
+
http_version:
|
|
354
|
+
recorded_at: Wed, 29 Aug 2012 07:04:10 GMT
|
|
355
|
+
recorded_with: VCR 2.2.0
|
|
@@ -0,0 +1,290 @@
|
|
|
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: 200
|
|
15
|
+
message: OK
|
|
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\":2}"
|
|
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/_mlt?min_term_freq=invalid
|
|
29
|
+
body:
|
|
30
|
+
encoding: US-ASCII
|
|
31
|
+
string: ""
|
|
32
|
+
headers: {}
|
|
33
|
+
|
|
34
|
+
response:
|
|
35
|
+
status:
|
|
36
|
+
code: 400
|
|
37
|
+
message: Bad Request
|
|
38
|
+
headers:
|
|
39
|
+
Content-Type:
|
|
40
|
+
- application/json; charset=UTF-8
|
|
41
|
+
Content-Length:
|
|
42
|
+
- "78"
|
|
43
|
+
body:
|
|
44
|
+
encoding: US-ASCII
|
|
45
|
+
string: "{\"error\":\"Failed to parse int parameter [min_term_freq] with value [invalid]\"}"
|
|
46
|
+
http_version:
|
|
47
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
|
48
|
+
- request:
|
|
49
|
+
method: get
|
|
50
|
+
uri: http://localhost:9200/yoga_pants_test/doc/1/_mlt?min_term_freq=invalid
|
|
51
|
+
body:
|
|
52
|
+
encoding: US-ASCII
|
|
53
|
+
string: ""
|
|
54
|
+
headers: {}
|
|
55
|
+
|
|
56
|
+
response:
|
|
57
|
+
status:
|
|
58
|
+
code: 400
|
|
59
|
+
message: Bad Request
|
|
60
|
+
headers:
|
|
61
|
+
Content-Type:
|
|
62
|
+
- application/json; charset=UTF-8
|
|
63
|
+
Content-Length:
|
|
64
|
+
- "78"
|
|
65
|
+
body:
|
|
66
|
+
encoding: US-ASCII
|
|
67
|
+
string: "{\"error\":\"Failed to parse int parameter [min_term_freq] with value [invalid]\"}"
|
|
68
|
+
http_version:
|
|
69
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
|
70
|
+
- request:
|
|
71
|
+
method: get
|
|
72
|
+
uri: http://localhost:9200/yoga_pants_test/doc/1/_mlt?min_term_freq=invalid
|
|
73
|
+
body:
|
|
74
|
+
encoding: US-ASCII
|
|
75
|
+
string: ""
|
|
76
|
+
headers: {}
|
|
77
|
+
|
|
78
|
+
response:
|
|
79
|
+
status:
|
|
80
|
+
code: 400
|
|
81
|
+
message: Bad Request
|
|
82
|
+
headers:
|
|
83
|
+
Content-Type:
|
|
84
|
+
- application/json; charset=UTF-8
|
|
85
|
+
Content-Length:
|
|
86
|
+
- "78"
|
|
87
|
+
body:
|
|
88
|
+
encoding: US-ASCII
|
|
89
|
+
string: "{\"error\":\"Failed to parse int parameter [min_term_freq] with value [invalid]\"}"
|
|
90
|
+
http_version:
|
|
91
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
|
92
|
+
- request:
|
|
93
|
+
method: get
|
|
94
|
+
uri: http://localhost:9200/yoga_pants_test/doc/1/_mlt?min_term_freq=invalid
|
|
95
|
+
body:
|
|
96
|
+
encoding: US-ASCII
|
|
97
|
+
string: ""
|
|
98
|
+
headers: {}
|
|
99
|
+
|
|
100
|
+
response:
|
|
101
|
+
status:
|
|
102
|
+
code: 400
|
|
103
|
+
message: Bad Request
|
|
104
|
+
headers:
|
|
105
|
+
Content-Type:
|
|
106
|
+
- application/json; charset=UTF-8
|
|
107
|
+
Content-Length:
|
|
108
|
+
- "78"
|
|
109
|
+
body:
|
|
110
|
+
encoding: US-ASCII
|
|
111
|
+
string: "{\"error\":\"Failed to parse int parameter [min_term_freq] with value [invalid]\"}"
|
|
112
|
+
http_version:
|
|
113
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
|
114
|
+
- request:
|
|
115
|
+
method: get
|
|
116
|
+
uri: http://localhost:9200/yoga_pants_test/doc/1/_mlt?min_term_freq=invalid
|
|
117
|
+
body:
|
|
118
|
+
encoding: US-ASCII
|
|
119
|
+
string: ""
|
|
120
|
+
headers: {}
|
|
121
|
+
|
|
122
|
+
response:
|
|
123
|
+
status:
|
|
124
|
+
code: 400
|
|
125
|
+
message: Bad Request
|
|
126
|
+
headers:
|
|
127
|
+
Content-Type:
|
|
128
|
+
- application/json; charset=UTF-8
|
|
129
|
+
Content-Length:
|
|
130
|
+
- "78"
|
|
131
|
+
body:
|
|
132
|
+
encoding: US-ASCII
|
|
133
|
+
string: "{\"error\":\"Failed to parse int parameter [min_term_freq] with value [invalid]\"}"
|
|
134
|
+
http_version:
|
|
135
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
|
136
|
+
- request:
|
|
137
|
+
method: get
|
|
138
|
+
uri: http://localhost:9200/yoga_pants_test/doc/1/_mlt?min_term_freq=invalid
|
|
139
|
+
body:
|
|
140
|
+
encoding: US-ASCII
|
|
141
|
+
string: ""
|
|
142
|
+
headers: {}
|
|
143
|
+
|
|
144
|
+
response:
|
|
145
|
+
status:
|
|
146
|
+
code: 400
|
|
147
|
+
message: Bad Request
|
|
148
|
+
headers:
|
|
149
|
+
Content-Type:
|
|
150
|
+
- application/json; charset=UTF-8
|
|
151
|
+
Content-Length:
|
|
152
|
+
- "78"
|
|
153
|
+
body:
|
|
154
|
+
encoding: US-ASCII
|
|
155
|
+
string: "{\"error\":\"Failed to parse int parameter [min_term_freq] with value [invalid]\"}"
|
|
156
|
+
http_version:
|
|
157
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
|
158
|
+
- request:
|
|
159
|
+
method: get
|
|
160
|
+
uri: http://localhost:9200/yoga_pants_test/doc/1/_mlt?min_term_freq=invalid
|
|
161
|
+
body:
|
|
162
|
+
encoding: US-ASCII
|
|
163
|
+
string: ""
|
|
164
|
+
headers: {}
|
|
165
|
+
|
|
166
|
+
response:
|
|
167
|
+
status:
|
|
168
|
+
code: 400
|
|
169
|
+
message: Bad Request
|
|
170
|
+
headers:
|
|
171
|
+
Content-Type:
|
|
172
|
+
- application/json; charset=UTF-8
|
|
173
|
+
Content-Length:
|
|
174
|
+
- "78"
|
|
175
|
+
body:
|
|
176
|
+
encoding: US-ASCII
|
|
177
|
+
string: "{\"error\":\"Failed to parse int parameter [min_term_freq] with value [invalid]\"}"
|
|
178
|
+
http_version:
|
|
179
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
|
180
|
+
- request:
|
|
181
|
+
method: get
|
|
182
|
+
uri: http://localhost:9200/yoga_pants_test/doc/1/_mlt?min_term_freq=invalid
|
|
183
|
+
body:
|
|
184
|
+
encoding: US-ASCII
|
|
185
|
+
string: ""
|
|
186
|
+
headers: {}
|
|
187
|
+
|
|
188
|
+
response:
|
|
189
|
+
status:
|
|
190
|
+
code: 400
|
|
191
|
+
message: Bad Request
|
|
192
|
+
headers:
|
|
193
|
+
Content-Type:
|
|
194
|
+
- application/json; charset=UTF-8
|
|
195
|
+
Content-Length:
|
|
196
|
+
- "78"
|
|
197
|
+
body:
|
|
198
|
+
encoding: US-ASCII
|
|
199
|
+
string: "{\"error\":\"Failed to parse int parameter [min_term_freq] with value [invalid]\"}"
|
|
200
|
+
http_version:
|
|
201
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
|
202
|
+
- request:
|
|
203
|
+
method: get
|
|
204
|
+
uri: http://localhost:9200/yoga_pants_test/doc/1/_mlt?min_term_freq=invalid
|
|
205
|
+
body:
|
|
206
|
+
encoding: US-ASCII
|
|
207
|
+
string: ""
|
|
208
|
+
headers: {}
|
|
209
|
+
|
|
210
|
+
response:
|
|
211
|
+
status:
|
|
212
|
+
code: 400
|
|
213
|
+
message: Bad Request
|
|
214
|
+
headers:
|
|
215
|
+
Content-Type:
|
|
216
|
+
- application/json; charset=UTF-8
|
|
217
|
+
Content-Length:
|
|
218
|
+
- "78"
|
|
219
|
+
body:
|
|
220
|
+
encoding: US-ASCII
|
|
221
|
+
string: "{\"error\":\"Failed to parse int parameter [min_term_freq] with value [invalid]\"}"
|
|
222
|
+
http_version:
|
|
223
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
|
224
|
+
- request:
|
|
225
|
+
method: get
|
|
226
|
+
uri: http://localhost:9200/yoga_pants_test/doc/1/_mlt?min_term_freq=invalid
|
|
227
|
+
body:
|
|
228
|
+
encoding: US-ASCII
|
|
229
|
+
string: ""
|
|
230
|
+
headers: {}
|
|
231
|
+
|
|
232
|
+
response:
|
|
233
|
+
status:
|
|
234
|
+
code: 400
|
|
235
|
+
message: Bad Request
|
|
236
|
+
headers:
|
|
237
|
+
Content-Type:
|
|
238
|
+
- application/json; charset=UTF-8
|
|
239
|
+
Content-Length:
|
|
240
|
+
- "78"
|
|
241
|
+
body:
|
|
242
|
+
encoding: US-ASCII
|
|
243
|
+
string: "{\"error\":\"Failed to parse int parameter [min_term_freq] with value [invalid]\"}"
|
|
244
|
+
http_version:
|
|
245
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
|
246
|
+
- request:
|
|
247
|
+
method: get
|
|
248
|
+
uri: http://localhost:9200/yoga_pants_test/doc/1/_mlt?min_term_freq=invalid
|
|
249
|
+
body:
|
|
250
|
+
encoding: US-ASCII
|
|
251
|
+
string: ""
|
|
252
|
+
headers: {}
|
|
253
|
+
|
|
254
|
+
response:
|
|
255
|
+
status:
|
|
256
|
+
code: 400
|
|
257
|
+
message: Bad Request
|
|
258
|
+
headers:
|
|
259
|
+
Content-Type:
|
|
260
|
+
- application/json; charset=UTF-8
|
|
261
|
+
Content-Length:
|
|
262
|
+
- "78"
|
|
263
|
+
body:
|
|
264
|
+
encoding: US-ASCII
|
|
265
|
+
string: "{\"error\":\"Failed to parse int parameter [min_term_freq] with value [invalid]\"}"
|
|
266
|
+
http_version:
|
|
267
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
|
268
|
+
- request:
|
|
269
|
+
method: get
|
|
270
|
+
uri: http://localhost:9200/yoga_pants_test/doc/1/_mlt?min_term_freq=invalid
|
|
271
|
+
body:
|
|
272
|
+
encoding: US-ASCII
|
|
273
|
+
string: ""
|
|
274
|
+
headers: {}
|
|
275
|
+
|
|
276
|
+
response:
|
|
277
|
+
status:
|
|
278
|
+
code: 400
|
|
279
|
+
message: Bad Request
|
|
280
|
+
headers:
|
|
281
|
+
Content-Type:
|
|
282
|
+
- application/json; charset=UTF-8
|
|
283
|
+
Content-Length:
|
|
284
|
+
- "78"
|
|
285
|
+
body:
|
|
286
|
+
encoding: US-ASCII
|
|
287
|
+
string: "{\"error\":\"Failed to parse int parameter [min_term_freq] with value [invalid]\"}"
|
|
288
|
+
http_version:
|
|
289
|
+
recorded_at: Mon, 25 Jun 2012 08:14:09 GMT
|
|
290
|
+
recorded_with: VCR 2.2.0
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: head
|
|
5
|
+
uri: http://localhost:9200/foo
|
|
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
|
+
- text/plain; charset=UTF-8
|
|
18
|
+
Content-Length:
|
|
19
|
+
- "0"
|
|
20
|
+
body:
|
|
21
|
+
encoding: US-ASCII
|
|
22
|
+
string: ""
|
|
23
|
+
http_version:
|
|
24
|
+
recorded_at: Mon, 25 Jun 2012 08:14:10 GMT
|
|
25
|
+
recorded_with: VCR 2.2.0
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: head
|
|
5
|
+
uri: http://localhost:9200/foo
|
|
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
|
+
- text/plain; charset=UTF-8
|
|
18
|
+
Content-Length:
|
|
19
|
+
- "0"
|
|
20
|
+
body:
|
|
21
|
+
encoding: US-ASCII
|
|
22
|
+
string: ""
|
|
23
|
+
http_version:
|
|
24
|
+
recorded_at: Mon, 25 Jun 2012 08:14:15 GMT
|
|
25
|
+
recorded_with: VCR 2.2.0
|