elastic_record 5.3.0 → 5.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/elastic_record.gemspec +2 -2
- data/lib/elastic_record/relation/search_methods.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8877637e666a191a2b01fb967d998d36fe0a12023fdb8030a4c719bb77ae246
|
4
|
+
data.tar.gz: 8f0136038c8d2b540c0e53e7c650a16ec7e5668274ae07631c2bc63ed3e4469b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e559697ea16610802ff1e7422cc5365f60098fbbda49565fc7227c1973c90bcacd0f893ee5a221316dde4e14a89338956134698dd5705a01581898f30a0bbb9
|
7
|
+
data.tar.gz: ab182a767408f8843d854d79ac2f7f4f19d17ddbde11bbe52393d9eac12360fee38292a09c03a97ef726b76ddaea12ba4fb829a059c2ee505e6541f0cd4dd17c
|
data/elastic_record.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'elastic_record'
|
5
|
-
s.version = '5.3.
|
5
|
+
s.version = '5.3.1'
|
6
6
|
s.summary = 'An Elasticsearch querying ORM'
|
7
7
|
s.description = 'Find your records with Elasticsearch'
|
8
8
|
|
@@ -18,6 +18,6 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.files = `git ls-files`.split("\n")
|
19
19
|
s.test_files = `git ls-files -- {test}/*`.split("\n")
|
20
20
|
|
21
|
-
s.add_dependency 'arelastic', '>= 2.
|
21
|
+
s.add_dependency 'arelastic', '>= 2.6.0'
|
22
22
|
s.add_dependency 'activemodel'
|
23
23
|
end
|
@@ -197,11 +197,11 @@ module ElasticRecord
|
|
197
197
|
filter = build_filter(filters)
|
198
198
|
|
199
199
|
query_and_filter = if filter
|
200
|
-
arelastic.
|
200
|
+
arelastic.queries.bool(filter: filter, must: query)
|
201
201
|
elsif query
|
202
202
|
query
|
203
203
|
else
|
204
|
-
arelastic.
|
204
|
+
arelastic.queries.match_all
|
205
205
|
end
|
206
206
|
|
207
207
|
Arelastic::Searches::Query.new query_and_filter
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elastic_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.3.
|
4
|
+
version: 5.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Infogroup
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 2.
|
20
|
+
version: 2.6.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 2.
|
27
|
+
version: 2.6.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: activemodel
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|