stretchy 0.3.4 → 0.3.5
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.
- checksums.yaml +4 -4
- data/lib/stretchy/boosts.rb +4 -0
- data/lib/stretchy/builders.rb +3 -0
- data/lib/stretchy/clauses.rb +6 -0
- data/lib/stretchy/errors.rb +1 -0
- data/lib/stretchy/filters.rb +10 -0
- data/lib/stretchy/queries.rb +6 -0
- data/lib/stretchy/results.rb +2 -0
- data/lib/stretchy/types.rb +3 -0
- data/lib/stretchy/utils.rb +3 -0
- data/lib/stretchy/version.rb +1 -1
- data/lib/stretchy.rb +10 -4
- metadata +10 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 758cd7bb41f505f1f9e4d0ce0faffe4990f67bf1
|
4
|
+
data.tar.gz: 497dea4fe5d9dc1f5a9ab87b5e62db499022a22e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6df1715ae65dcb706603afdf6f9bc96e812c4f36c6408af3ec95da37d3c2db73fe1fe80315411448c4f13483e3c224005cde41511311c95b706b717127c59e95
|
7
|
+
data.tar.gz: 5df44ca59f891c1973f2202fb013549faf1dd5d2a098eb87bde5af5696ddf0e5ab66c4a416e4ad64d1a04f9a7aae1d86e6d5c730b8eda38efd944e80d7b95779
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'stretchy/errors/contract_error.rb'
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'stretchy/filters/base'
|
2
|
+
require 'stretchy/filters/and_filter'
|
3
|
+
require 'stretchy/filters/bool_filter'
|
4
|
+
require 'stretchy/filters/exists_filter'
|
5
|
+
require 'stretchy/filters/geo_filter'
|
6
|
+
require 'stretchy/filters/not_filter'
|
7
|
+
require 'stretchy/filters/or_filter'
|
8
|
+
require 'stretchy/filters/query_filter'
|
9
|
+
require 'stretchy/filters/range_filter'
|
10
|
+
require 'stretchy/filters/terms_filter'
|
data/lib/stretchy/version.rb
CHANGED
data/lib/stretchy.rb
CHANGED
@@ -4,12 +4,18 @@ require 'forwardable'
|
|
4
4
|
require 'excon'
|
5
5
|
require 'elasticsearch'
|
6
6
|
|
7
|
-
require 'stretchy/utils
|
8
|
-
require 'stretchy/
|
7
|
+
require 'stretchy/utils'
|
8
|
+
require 'stretchy/errors'
|
9
|
+
require 'stretchy/types'
|
10
|
+
require 'stretchy/queries'
|
11
|
+
require 'stretchy/filters'
|
12
|
+
require 'stretchy/queries'
|
13
|
+
require 'stretchy/boosts'
|
14
|
+
require 'stretchy/builders'
|
15
|
+
require 'stretchy/results'
|
16
|
+
require 'stretchy/clauses'
|
9
17
|
|
10
18
|
module Stretchy
|
11
19
|
extend Stretchy::Utils::Configuration
|
12
20
|
extend Stretchy::Utils::ClientActions
|
13
21
|
end
|
14
|
-
|
15
|
-
Gem.find_files('stretchy/**/*.rb').reject{|f| f =~ /spec/ }.each {|f| require f }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stretchy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- agius
|
@@ -137,20 +137,25 @@ files:
|
|
137
137
|
- bin/console
|
138
138
|
- bin/setup
|
139
139
|
- lib/stretchy.rb
|
140
|
+
- lib/stretchy/boosts.rb
|
140
141
|
- lib/stretchy/boosts/base.rb
|
141
142
|
- lib/stretchy/boosts/field_decay_boost.rb
|
142
143
|
- lib/stretchy/boosts/filter_boost.rb
|
143
144
|
- lib/stretchy/boosts/random_boost.rb
|
145
|
+
- lib/stretchy/builders.rb
|
144
146
|
- lib/stretchy/builders/boost_builder.rb
|
145
147
|
- lib/stretchy/builders/match_builder.rb
|
146
148
|
- lib/stretchy/builders/where_builder.rb
|
149
|
+
- lib/stretchy/clauses.rb
|
147
150
|
- lib/stretchy/clauses/base.rb
|
148
151
|
- lib/stretchy/clauses/boost_clause.rb
|
149
152
|
- lib/stretchy/clauses/boost_match_clause.rb
|
150
153
|
- lib/stretchy/clauses/boost_where_clause.rb
|
151
154
|
- lib/stretchy/clauses/match_clause.rb
|
152
155
|
- lib/stretchy/clauses/where_clause.rb
|
156
|
+
- lib/stretchy/errors.rb
|
153
157
|
- lib/stretchy/errors/contract_error.rb
|
158
|
+
- lib/stretchy/filters.rb
|
154
159
|
- lib/stretchy/filters/and_filter.rb
|
155
160
|
- lib/stretchy/filters/base.rb
|
156
161
|
- lib/stretchy/filters/bool_filter.rb
|
@@ -161,17 +166,21 @@ files:
|
|
161
166
|
- lib/stretchy/filters/query_filter.rb
|
162
167
|
- lib/stretchy/filters/range_filter.rb
|
163
168
|
- lib/stretchy/filters/terms_filter.rb
|
169
|
+
- lib/stretchy/queries.rb
|
164
170
|
- lib/stretchy/queries/base.rb
|
165
171
|
- lib/stretchy/queries/bool_query.rb
|
166
172
|
- lib/stretchy/queries/filtered_query.rb
|
167
173
|
- lib/stretchy/queries/function_score_query.rb
|
168
174
|
- lib/stretchy/queries/match_all_query.rb
|
169
175
|
- lib/stretchy/queries/match_query.rb
|
176
|
+
- lib/stretchy/results.rb
|
170
177
|
- lib/stretchy/results/base.rb
|
171
178
|
- lib/stretchy/results/null_results.rb
|
179
|
+
- lib/stretchy/types.rb
|
172
180
|
- lib/stretchy/types/base.rb
|
173
181
|
- lib/stretchy/types/geo_point.rb
|
174
182
|
- lib/stretchy/types/range.rb
|
183
|
+
- lib/stretchy/utils.rb
|
175
184
|
- lib/stretchy/utils/client_actions.rb
|
176
185
|
- lib/stretchy/utils/configuration.rb
|
177
186
|
- lib/stretchy/utils/contract.rb
|