arelastic 0.4.9 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arelastic/queries/multi_match.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48bbbfd23e2aaa2b73017ccc16b002661b6a31f5
|
4
|
+
data.tar.gz: 48fa91f28a48d51ba96eae2a66776b76187405c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 934d9ac4da52da217fa78904a70899f1b6fca2857159b7054f1b2976cebac351355864cdd1d1184e1647b798980ad0c84f79b39159202beb785b6b747849d939
|
7
|
+
data.tar.gz: d89ea4221656300193f51b424cdf4a222a32eef357bee03206c583adc4edf02e28ebbfb3d89454aeb9e9ae9bfccde414239b6163f3440dbfaeb4c790e45142e7
|
@@ -2,7 +2,7 @@ module Arelastic
|
|
2
2
|
module Queries
|
3
3
|
class MultiMatch < Query
|
4
4
|
attr_accessor :query, :fields, :options
|
5
|
-
def initialize(
|
5
|
+
def initialize(fields, query, options = {})
|
6
6
|
@query = query
|
7
7
|
@fields = fields
|
8
8
|
@options = options
|
@@ -11,8 +11,8 @@ module Arelastic
|
|
11
11
|
def as_elastic
|
12
12
|
{
|
13
13
|
"multi_match" => {
|
14
|
-
"
|
15
|
-
"
|
14
|
+
"fields" => convert_to_elastic(fields),
|
15
|
+
"query" => convert_to_elastic(query)
|
16
16
|
}.merge(options)
|
17
17
|
}
|
18
18
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arelastic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Higgins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Build Elastic Search queries with objects
|
14
14
|
email: developer@matthewhiggins.com
|
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
version: 1.8.11
|
149
149
|
requirements: []
|
150
150
|
rubyforge_project:
|
151
|
-
rubygems_version: 2.2.
|
151
|
+
rubygems_version: 2.2.2
|
152
152
|
signing_key:
|
153
153
|
specification_version: 4
|
154
154
|
summary: Elastic Search query builder
|