elasticsearch_query 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/elasticsearch_query/filter_formatter/match.rb +16 -2
- data/lib/elasticsearch_query/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b7dae4d8223abee9fa7445967d0de3a98a1e5ac
|
4
|
+
data.tar.gz: 54c3721c81a46637c4245378b634a9fa363cb035
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51ab090dc88ee074e8d455fdd26fcf3f8907cd04cfbff58089ad75cabb5a3249421531eb37d972a957c511354bb26e182c90fcb82d06335e98a4b2c3bb63bcf6
|
7
|
+
data.tar.gz: 71ef71664c92803818a503d15f5f70e0201759de36366bd61ae5bed8b3e0b80fdc2ea7c0b2f0fa8ef4d681443284f437c4fb6b6046a5abed2385d6f29ebf52aa
|
data/Gemfile.lock
CHANGED
@@ -2,8 +2,22 @@ module ElasticsearchQuery
|
|
2
2
|
module FilterFormatter
|
3
3
|
class Match < Base
|
4
4
|
def to_hash
|
5
|
-
{ match: { @name =>
|
5
|
+
{ match: { @name => value } }
|
6
|
+
end
|
7
|
+
|
8
|
+
private
|
9
|
+
|
10
|
+
def value
|
11
|
+
array? ? array : @value
|
12
|
+
end
|
13
|
+
|
14
|
+
def array?
|
15
|
+
array.length > 1
|
16
|
+
end
|
17
|
+
|
18
|
+
def array
|
19
|
+
@array ||= @value.split(",")
|
6
20
|
end
|
7
21
|
end
|
8
22
|
end
|
9
|
-
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticsearch_query
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Orlov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|