elasticated 2.5.5 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +35 -2
- data/Rakefile +52 -1
- data/elasticated.gemspec +3 -1
- data/lib/elasticated.rb +20 -24
- data/lib/elasticated/aggregation.rb +3 -6
- data/lib/elasticated/aggregations/date_histogram_aggregation.rb +6 -1
- data/lib/elasticated/aggregations/filter_aggregation.rb +8 -12
- data/lib/elasticated/aggregations/filter_aggregation_evaluator.rb +1 -1
- data/lib/elasticated/aggregations/group_aggregation.rb +14 -11
- data/lib/elasticated/aggregations/range_aggregation.rb +10 -11
- data/lib/elasticated/aggregations/range_aggregation_evaluator.rb +1 -1
- data/lib/elasticated/aggregations/ranges_builder.rb +2 -2
- data/lib/elasticated/aggregations/safe_date_histogram_aggregation.rb +7 -2
- data/lib/elasticated/aggregations/subaggregated.rb +1 -1
- data/lib/elasticated/boolean_clause.rb +4 -3
- data/lib/elasticated/bulk_actions/create_action.rb +14 -0
- data/lib/elasticated/bulk_actions/delete_action.rb +30 -0
- data/lib/elasticated/bulk_actions/index_action.rb +35 -0
- data/lib/elasticated/bulk_actions/standard_action.rb +22 -0
- data/lib/elasticated/bulk_actions/update_action.rb +44 -0
- data/lib/elasticated/bulk_actions/upsert_action.rb +14 -0
- data/lib/elasticated/bulk_request.rb +58 -0
- data/lib/elasticated/bulk_request/response.rb +32 -0
- data/lib/elasticated/bulk_request/response_item.rb +39 -0
- data/lib/elasticated/client.rb +27 -3
- data/lib/elasticated/conditions/custom_condition.rb +3 -3
- data/lib/elasticated/conditions/range_condition.rb +5 -2
- data/lib/elasticated/conditions/script_condition.rb +3 -3
- data/lib/elasticated/conditions/standard_condition.rb +4 -5
- data/lib/elasticated/conditions/term_condition.rb +22 -0
- data/lib/elasticated/conditions/terms_condition.rb +2 -2
- data/lib/elasticated/conditions_builder.rb +19 -4
- data/lib/elasticated/delimiters/date_field_delimiter.rb +21 -12
- data/lib/elasticated/delimiters/standard_field_delimiter.rb +18 -2
- data/lib/elasticated/delimiters/term_field_delimiter.rb +6 -5
- data/lib/elasticated/document.rb +20 -1
- data/lib/elasticated/enum.rb +17 -0
- data/lib/elasticated/index_selector.rb +26 -25
- data/lib/elasticated/mapping.rb +2 -4
- data/lib/elasticated/mapping/builder.rb +3 -2
- data/lib/elasticated/mapping/fields_builder.rb +13 -9
- data/lib/elasticated/mapping/object_builder.rb +38 -4
- data/lib/elasticated/mapping/type_builder.rb +3 -5
- data/lib/elasticated/mixins/block_evaluation.rb +17 -0
- data/lib/elasticated/mixins/clonable.rb +60 -0
- data/lib/elasticated/mixins/configurable.rb +22 -0
- data/lib/elasticated/mixins/inspectionable.rb +16 -0
- data/lib/elasticated/partitioned_repository.rb +24 -18
- data/lib/elasticated/query.rb +27 -21
- data/lib/elasticated/query_aggregations.rb +5 -7
- data/lib/elasticated/query_conditions.rb +6 -3
- data/lib/elasticated/quick.rb +7 -0
- data/lib/elasticated/repository.rb +184 -40
- data/lib/elasticated/repository/intelligent_search.rb +3 -3
- data/lib/elasticated/repository/normal_search.rb +2 -2
- data/lib/elasticated/repository/resumable_search.rb +5 -5
- data/lib/elasticated/repository/scan_scroll_search.rb +4 -4
- data/lib/elasticated/repository/scroll_search.rb +3 -3
- data/lib/elasticated/repository/search.rb +7 -0
- data/lib/elasticated/repository/single_page_search.rb +1 -1
- data/lib/elasticated/results.rb +14 -0
- data/lib/version.rb +18 -25
- data/spec/aggregation_spec.rb +95 -16
- data/spec/bulk_request_spec.rb +158 -0
- data/spec/date_field_delimiter_spec.rb +50 -6
- data/spec/document_spec.rb +1 -5
- data/spec/integration_spec.rb +7 -7
- data/spec/mapping_spec.rb +128 -8
- data/spec/partitioned_repository_spec.rb +218 -0
- data/spec/query_conditions_spec.rb +98 -45
- data/spec/query_spec.rb +21 -28
- data/spec/repository_spec.rb +245 -0
- data/spec/results_spec.rb +0 -4
- data/spec/sample_responses/elasticsearch_bulk_response_1.json +35 -0
- data/spec/sample_responses/elasticsearch_bulk_response_2.json +20 -0
- data/spec/sample_responses/elasticsearch_count_1.json +8 -0
- data/spec/sample_responses/elasticsearch_count_2.json +8 -0
- data/spec/sample_responses/elasticsearch_get_response_1.json +10 -0
- data/spec/sample_responses/elasticsearch_get_response_2.json +6 -0
- data/spec/{elasticsearch_hit_1.json → sample_responses/elasticsearch_hit_1.json} +0 -0
- data/spec/sample_responses/elasticsearch_mget_response_1.json +25 -0
- data/spec/{elasticsearch_response_1.json → sample_responses/elasticsearch_response_1.json} +0 -0
- data/spec/{elasticsearch_response_2.json → sample_responses/elasticsearch_response_2.json} +0 -0
- data/spec/{elasticsearch_top_hits_response.json → sample_responses/elasticsearch_top_hits_response.json} +0 -0
- data/spec/spec_helper.rb +47 -0
- data/spec/spec_helper/fake_index_selector.rb +27 -0
- data/spec/term_field_delimiter_spec.rb +8 -8
- metadata +80 -26
- data/lib/elasticated/block_evaluation.rb +0 -15
- data/lib/elasticated/clonable.rb +0 -58
- data/lib/elasticated/configurable.rb +0 -20
- data/lib/elasticated/date_delimiter_factory.rb +0 -123
- data/lib/elasticated/delimiter_visitor.rb +0 -53
- data/lib/elasticated/inspectionable.rb +0 -9
- data/lib/elasticated/strategy_params_for_query_service.rb +0 -14
- data/lib/elasticated/term_delimiter_factory.rb +0 -73
- data/spec/delimiter_factory_spec.rb +0 -399
- data/spec/strategy_params_for_query_service_spec.rb +0 -387
data/spec/results_spec.rb
CHANGED
@@ -3,10 +3,6 @@ require_relative 'spec_helper'
|
|
3
3
|
module Elasticated
|
4
4
|
describe Results do
|
5
5
|
|
6
|
-
def open_response(name)
|
7
|
-
JSON.parse File.read "spec/#{name}.json"
|
8
|
-
end
|
9
|
-
|
10
6
|
it "should parse an 'search' response" do
|
11
7
|
response = open_response 'elasticsearch_response_1'
|
12
8
|
results = Results.parse response
|
@@ -0,0 +1,35 @@
|
|
1
|
+
{
|
2
|
+
"took": 4,
|
3
|
+
"errors": false,
|
4
|
+
"items": [
|
5
|
+
{ "delete": {
|
6
|
+
"_index": "website",
|
7
|
+
"_type": "blog",
|
8
|
+
"_id": "123",
|
9
|
+
"_version": 2,
|
10
|
+
"status": 200,
|
11
|
+
"found": true
|
12
|
+
}},
|
13
|
+
{ "create": {
|
14
|
+
"_index": "website",
|
15
|
+
"_type": "blog",
|
16
|
+
"_id": "123",
|
17
|
+
"_version": 3,
|
18
|
+
"status": 201
|
19
|
+
}},
|
20
|
+
{ "create": {
|
21
|
+
"_index": "website",
|
22
|
+
"_type": "blog",
|
23
|
+
"_id": "EiwfApScQiiy7TIKFxRCTw",
|
24
|
+
"_version": 1,
|
25
|
+
"status": 201
|
26
|
+
}},
|
27
|
+
{ "update": {
|
28
|
+
"_index": "website",
|
29
|
+
"_type": "blog",
|
30
|
+
"_id": "123",
|
31
|
+
"_version": 4,
|
32
|
+
"status": 200
|
33
|
+
}}
|
34
|
+
]
|
35
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"took": 3,
|
3
|
+
"errors": true,
|
4
|
+
"items": [
|
5
|
+
{ "create": {
|
6
|
+
"_index": "website",
|
7
|
+
"_type": "blog",
|
8
|
+
"_id": "123",
|
9
|
+
"status": 409,
|
10
|
+
"error": "DocumentAlreadyExistsException[[website][4] [blog][123]: document already exists]"
|
11
|
+
}},
|
12
|
+
{ "index": {
|
13
|
+
"_index": "website",
|
14
|
+
"_type": "blog",
|
15
|
+
"_id": "123",
|
16
|
+
"_version": 5,
|
17
|
+
"status": 200
|
18
|
+
}}
|
19
|
+
]
|
20
|
+
}
|
File without changes
|
@@ -0,0 +1,25 @@
|
|
1
|
+
{
|
2
|
+
"docs" : [
|
3
|
+
{
|
4
|
+
"_index" : "website",
|
5
|
+
"_id" : "id2",
|
6
|
+
"_type" : "blog",
|
7
|
+
"found" : true,
|
8
|
+
"_source" : {
|
9
|
+
"text" : "This is a piece of cake...",
|
10
|
+
"title" : "My first external blog entry"
|
11
|
+
},
|
12
|
+
"_version" : 10
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"_index" : "website",
|
16
|
+
"_id" : "id1",
|
17
|
+
"_type" : "pageviews",
|
18
|
+
"found" : true,
|
19
|
+
"_version" : 2,
|
20
|
+
"_source" : {
|
21
|
+
"views" : 2
|
22
|
+
}
|
23
|
+
}
|
24
|
+
]
|
25
|
+
}
|
File without changes
|
File without changes
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
@@ -1,2 +1,49 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
|
3
|
+
SimpleCov.start do
|
4
|
+
add_group 'Aggregations', [
|
5
|
+
'lib/elasticated/aggregation',
|
6
|
+
'lib/elasticated/aggregations'
|
7
|
+
]
|
8
|
+
add_group 'Conditions', [
|
9
|
+
'lib/elasticated/conditions'
|
10
|
+
]
|
11
|
+
add_group 'Delimiters', [
|
12
|
+
'lib/elasticated/delimiters'
|
13
|
+
]
|
14
|
+
add_group 'Mapping', [
|
15
|
+
'lib/elasticated/mapping'
|
16
|
+
]
|
17
|
+
add_group 'Mixins', [
|
18
|
+
'lib/elasticated/mixins'
|
19
|
+
]
|
20
|
+
add_group 'Loggers', [
|
21
|
+
'lib/elasticated/loggers'
|
22
|
+
]
|
23
|
+
add_group 'Repository & Client', [
|
24
|
+
'lib/elasticated/repository',
|
25
|
+
'lib/elasticated/index_selector',
|
26
|
+
'lib/elasticated/partitioned_repository',
|
27
|
+
'lib/elasticated/client'
|
28
|
+
]
|
29
|
+
add_group 'Document', [
|
30
|
+
'lib/elasticated/document',
|
31
|
+
'lib/elasticated/results'
|
32
|
+
]
|
33
|
+
add_group 'Query Components', [
|
34
|
+
'lib/elasticated/query',
|
35
|
+
'lib/elasticated/query_conditions',
|
36
|
+
'lib/elasticated/query_aggregations',
|
37
|
+
'lib/elasticated/boolean_clause'
|
38
|
+
]
|
39
|
+
add_filter 'spec'
|
40
|
+
end
|
41
|
+
|
1
42
|
require 'rspec'
|
2
43
|
require_relative '../lib/elasticated'
|
44
|
+
|
45
|
+
def open_response(name)
|
46
|
+
JSON.parse File.read "spec/sample_responses/#{name}.json"
|
47
|
+
end
|
48
|
+
|
49
|
+
require_relative 'spec_helper/fake_index_selector'
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module SpecHelper
|
2
|
+
class FakeIndexSelector < Elasticated::IndexSelector
|
3
|
+
|
4
|
+
def delimiters
|
5
|
+
[Elasticated::Delimiters::DateFieldDelimiter.new(field: :created_at, as: :date)]
|
6
|
+
end
|
7
|
+
|
8
|
+
def strategy
|
9
|
+
Proc.new do |params|
|
10
|
+
date = params[:date]
|
11
|
+
date_since = params[:date_since]
|
12
|
+
date_until = params[:date_until]
|
13
|
+
if date
|
14
|
+
date = Date.parse date
|
15
|
+
[date.strftime("fakeindex-%Y-%m-%d")]
|
16
|
+
elsif date_since
|
17
|
+
date_since = Date.parse date_since
|
18
|
+
date_until = Date.parse date_until
|
19
|
+
(date_since..date_until).map{ |date| date.strftime "fakeindex-%Y-%m-%d" }
|
20
|
+
else
|
21
|
+
['fakeindex']
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -4,32 +4,32 @@ module Elasticated
|
|
4
4
|
module Delimiters
|
5
5
|
describe TermFieldDelimiter do
|
6
6
|
|
7
|
-
let :
|
7
|
+
let :delimiter do
|
8
8
|
TermFieldDelimiter.new field: :account_id, as: :account
|
9
9
|
end
|
10
10
|
|
11
11
|
it "should not delimit anything" do
|
12
|
-
params =
|
12
|
+
params = delimiter.build_strategy_params
|
13
13
|
expect(params).to be_empty
|
14
14
|
end
|
15
15
|
|
16
16
|
it "should delimit by one term" do
|
17
|
-
delimiter
|
17
|
+
delimiter.add_term :account_id, 'nombre1'
|
18
18
|
params = delimiter.build_strategy_params
|
19
19
|
expect(params).to eq account: ['nombre1']
|
20
20
|
end
|
21
21
|
|
22
22
|
it "should delimit by multiple terms" do
|
23
|
-
delimiter
|
24
|
-
delimiter
|
23
|
+
delimiter.add_term :account_id, 'nombre1'
|
24
|
+
delimiter.add_term :account_id, 'nombre2'
|
25
25
|
params = delimiter.build_strategy_params
|
26
26
|
expect(params).to eq account: ['nombre1', 'nombre2']
|
27
27
|
end
|
28
28
|
|
29
29
|
it "should ignore duplicated terms" do
|
30
|
-
delimiter
|
31
|
-
delimiter
|
32
|
-
delimiter
|
30
|
+
delimiter.add_term :account_id, 'nombre2'
|
31
|
+
delimiter.add_term :account_id, 'nombre2'
|
32
|
+
delimiter.add_term :account_id, 'nombre1'
|
33
33
|
params = delimiter.build_strategy_params
|
34
34
|
expect(params).to eq account: ['nombre2', 'nombre1']
|
35
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticated
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pablo Fernandez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.0
|
33
|
+
version: '3.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.0
|
40
|
+
version: '3.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +66,34 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: simplecov
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: elasticsearch-extensions
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
69
97
|
- !ruby/object:Gem::Dependency
|
70
98
|
name: elasticsearch
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,10 +178,17 @@ files:
|
|
150
178
|
- lib/elasticated/aggregations/terms_aggregation.rb
|
151
179
|
- lib/elasticated/aggregations/top_hits_aggregation.rb
|
152
180
|
- lib/elasticated/aggregations/value_count_aggregation.rb
|
153
|
-
- lib/elasticated/block_evaluation.rb
|
154
181
|
- lib/elasticated/boolean_clause.rb
|
182
|
+
- lib/elasticated/bulk_actions/create_action.rb
|
183
|
+
- lib/elasticated/bulk_actions/delete_action.rb
|
184
|
+
- lib/elasticated/bulk_actions/index_action.rb
|
185
|
+
- lib/elasticated/bulk_actions/standard_action.rb
|
186
|
+
- lib/elasticated/bulk_actions/update_action.rb
|
187
|
+
- lib/elasticated/bulk_actions/upsert_action.rb
|
188
|
+
- lib/elasticated/bulk_request.rb
|
189
|
+
- lib/elasticated/bulk_request/response.rb
|
190
|
+
- lib/elasticated/bulk_request/response_item.rb
|
155
191
|
- lib/elasticated/client.rb
|
156
|
-
- lib/elasticated/clonable.rb
|
157
192
|
- lib/elasticated/conditions/custom_condition.rb
|
158
193
|
- lib/elasticated/conditions/exists_condition.rb
|
159
194
|
- lib/elasticated/conditions/missing_condition.rb
|
@@ -161,20 +196,18 @@ files:
|
|
161
196
|
- lib/elasticated/conditions/range_condition.rb
|
162
197
|
- lib/elasticated/conditions/script_condition.rb
|
163
198
|
- lib/elasticated/conditions/standard_condition.rb
|
199
|
+
- lib/elasticated/conditions/term_condition.rb
|
164
200
|
- lib/elasticated/conditions/terms_condition.rb
|
165
201
|
- lib/elasticated/conditions/wildcard_condition.rb
|
166
202
|
- lib/elasticated/conditions_builder.rb
|
167
|
-
- lib/elasticated/configurable.rb
|
168
203
|
- lib/elasticated/configuration.rb
|
169
|
-
- lib/elasticated/date_delimiter_factory.rb
|
170
|
-
- lib/elasticated/delimiter_visitor.rb
|
171
204
|
- lib/elasticated/delimiters/date_field_delimiter.rb
|
172
205
|
- lib/elasticated/delimiters/standard_field_delimiter.rb
|
173
206
|
- lib/elasticated/delimiters/term_field_delimiter.rb
|
174
207
|
- lib/elasticated/document.rb
|
208
|
+
- lib/elasticated/enum.rb
|
175
209
|
- lib/elasticated/helpers.rb
|
176
210
|
- lib/elasticated/index_selector.rb
|
177
|
-
- lib/elasticated/inspectionable.rb
|
178
211
|
- lib/elasticated/loggers/default_logger.rb
|
179
212
|
- lib/elasticated/loggers/silent_logger.rb
|
180
213
|
- lib/elasticated/mapping.rb
|
@@ -184,10 +217,15 @@ files:
|
|
184
217
|
- lib/elasticated/mapping/object_builder.rb
|
185
218
|
- lib/elasticated/mapping/partial.rb
|
186
219
|
- lib/elasticated/mapping/type_builder.rb
|
220
|
+
- lib/elasticated/mixins/block_evaluation.rb
|
221
|
+
- lib/elasticated/mixins/clonable.rb
|
222
|
+
- lib/elasticated/mixins/configurable.rb
|
223
|
+
- lib/elasticated/mixins/inspectionable.rb
|
187
224
|
- lib/elasticated/partitioned_repository.rb
|
188
225
|
- lib/elasticated/query.rb
|
189
226
|
- lib/elasticated/query_aggregations.rb
|
190
227
|
- lib/elasticated/query_conditions.rb
|
228
|
+
- lib/elasticated/quick.rb
|
191
229
|
- lib/elasticated/repository.rb
|
192
230
|
- lib/elasticated/repository/intelligent_search.rb
|
193
231
|
- lib/elasticated/repository/normal_search.rb
|
@@ -197,26 +235,33 @@ files:
|
|
197
235
|
- lib/elasticated/repository/search.rb
|
198
236
|
- lib/elasticated/repository/single_page_search.rb
|
199
237
|
- lib/elasticated/results.rb
|
200
|
-
- lib/elasticated/strategy_params_for_query_service.rb
|
201
|
-
- lib/elasticated/term_delimiter_factory.rb
|
202
238
|
- lib/version.rb
|
203
239
|
- spec/aggregation_spec.rb
|
240
|
+
- spec/bulk_request_spec.rb
|
204
241
|
- spec/date_field_delimiter_spec.rb
|
205
|
-
- spec/delimiter_factory_spec.rb
|
206
242
|
- spec/document_spec.rb
|
207
|
-
- spec/elasticsearch_hit_1.json
|
208
|
-
- spec/elasticsearch_response_1.json
|
209
|
-
- spec/elasticsearch_response_2.json
|
210
|
-
- spec/elasticsearch_top_hits_response.json
|
211
243
|
- spec/integration_spec.rb
|
212
244
|
- spec/intelligent_search_spec.rb
|
213
245
|
- spec/mapping_spec.rb
|
246
|
+
- spec/partitioned_repository_spec.rb
|
214
247
|
- spec/query_aggregations_spec.rb
|
215
248
|
- spec/query_conditions_spec.rb
|
216
249
|
- spec/query_spec.rb
|
250
|
+
- spec/repository_spec.rb
|
217
251
|
- spec/results_spec.rb
|
252
|
+
- spec/sample_responses/elasticsearch_bulk_response_1.json
|
253
|
+
- spec/sample_responses/elasticsearch_bulk_response_2.json
|
254
|
+
- spec/sample_responses/elasticsearch_count_1.json
|
255
|
+
- spec/sample_responses/elasticsearch_count_2.json
|
256
|
+
- spec/sample_responses/elasticsearch_get_response_1.json
|
257
|
+
- spec/sample_responses/elasticsearch_get_response_2.json
|
258
|
+
- spec/sample_responses/elasticsearch_hit_1.json
|
259
|
+
- spec/sample_responses/elasticsearch_mget_response_1.json
|
260
|
+
- spec/sample_responses/elasticsearch_response_1.json
|
261
|
+
- spec/sample_responses/elasticsearch_response_2.json
|
262
|
+
- spec/sample_responses/elasticsearch_top_hits_response.json
|
218
263
|
- spec/spec_helper.rb
|
219
|
-
- spec/
|
264
|
+
- spec/spec_helper/fake_index_selector.rb
|
220
265
|
- spec/term_field_delimiter_spec.rb
|
221
266
|
homepage: http://github.com/pablo31/elasticated
|
222
267
|
licenses:
|
@@ -244,20 +289,29 @@ specification_version: 4
|
|
244
289
|
summary: Elasticsearch Wrapper, with Query & Mapping Builders
|
245
290
|
test_files:
|
246
291
|
- spec/aggregation_spec.rb
|
292
|
+
- spec/bulk_request_spec.rb
|
247
293
|
- spec/date_field_delimiter_spec.rb
|
248
|
-
- spec/delimiter_factory_spec.rb
|
249
294
|
- spec/document_spec.rb
|
250
|
-
- spec/elasticsearch_hit_1.json
|
251
|
-
- spec/elasticsearch_response_1.json
|
252
|
-
- spec/elasticsearch_response_2.json
|
253
|
-
- spec/elasticsearch_top_hits_response.json
|
254
295
|
- spec/integration_spec.rb
|
255
296
|
- spec/intelligent_search_spec.rb
|
256
297
|
- spec/mapping_spec.rb
|
298
|
+
- spec/partitioned_repository_spec.rb
|
257
299
|
- spec/query_aggregations_spec.rb
|
258
300
|
- spec/query_conditions_spec.rb
|
259
301
|
- spec/query_spec.rb
|
302
|
+
- spec/repository_spec.rb
|
260
303
|
- spec/results_spec.rb
|
304
|
+
- spec/sample_responses/elasticsearch_bulk_response_1.json
|
305
|
+
- spec/sample_responses/elasticsearch_bulk_response_2.json
|
306
|
+
- spec/sample_responses/elasticsearch_count_1.json
|
307
|
+
- spec/sample_responses/elasticsearch_count_2.json
|
308
|
+
- spec/sample_responses/elasticsearch_get_response_1.json
|
309
|
+
- spec/sample_responses/elasticsearch_get_response_2.json
|
310
|
+
- spec/sample_responses/elasticsearch_hit_1.json
|
311
|
+
- spec/sample_responses/elasticsearch_mget_response_1.json
|
312
|
+
- spec/sample_responses/elasticsearch_response_1.json
|
313
|
+
- spec/sample_responses/elasticsearch_response_2.json
|
314
|
+
- spec/sample_responses/elasticsearch_top_hits_response.json
|
261
315
|
- spec/spec_helper.rb
|
262
|
-
- spec/
|
316
|
+
- spec/spec_helper/fake_index_selector.rb
|
263
317
|
- spec/term_field_delimiter_spec.rb
|