stretchy 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stretchy/clauses/boost_clause.rb +3 -4
- data/lib/stretchy/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf6445c8421cd06f445ba6ddca205ad2e40ca3d2
|
4
|
+
data.tar.gz: ec341040b0dfe069bfc150459a8ee1c01c848465
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80e14ebc3395d182fd2338cd6bdf460204950030794b59b98dc1994564d289d6704ff6c6e4d0143542a882cfb76444a4fedd65abca1acbd2cc2a38813636d6c1
|
7
|
+
data.tar.gz: 6622416d049a195aa1de39788d2369c79f694d2cbf593d7e82e9d9d4c19870fd5db2aec512e75a913b668ab1baf6acdb70334c4cb4e11e085f8e3aa72a9d7a06
|
@@ -30,13 +30,13 @@ module Stretchy
|
|
30
30
|
options[:origin] = Stretchy::Types::GeoPoint.new(options)
|
31
31
|
end
|
32
32
|
@boost_builder.functions << Stretchy::Boosts::FieldDecayBoost.new(options)
|
33
|
-
self
|
33
|
+
Base.new(self)
|
34
34
|
end
|
35
35
|
alias :geo :near
|
36
36
|
|
37
37
|
def random(*args)
|
38
38
|
@boost_builder.functions << Stretchy::Boosts::RandomBoost.new(*args)
|
39
|
-
self
|
39
|
+
Base.new(self)
|
40
40
|
end
|
41
41
|
|
42
42
|
def all(num)
|
@@ -60,8 +60,7 @@ module Stretchy
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def not(options = {})
|
63
|
-
|
64
|
-
inst
|
63
|
+
self.class.new(self, options.merge(inverse: !inverse?))
|
65
64
|
end
|
66
65
|
|
67
66
|
end
|
data/lib/stretchy/version.rb
CHANGED
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- agius
|
@@ -202,3 +202,4 @@ signing_key:
|
|
202
202
|
specification_version: 4
|
203
203
|
summary: Query builder for Elasticsearch
|
204
204
|
test_files: []
|
205
|
+
has_rdoc:
|