eswrapsearch 0.0.2 → 0.0.3
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/eswrapsearch.rb +3 -3
- 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: f1dd1f88b70b99efb5fb642fca887eb2f3bc365a
|
4
|
+
data.tar.gz: 5e8142eea640261f5e711fe7fd5da0e32432e97e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4206511732ff3858241cbc5f143a156a024bdeabebddcb9a8e2e16ac2a8eb3c1174533e17e629b48565237f33fc02abea54e1e334c94747b85bef65a78819414
|
7
|
+
data.tar.gz: 96dfd1454521e9e3e773b49b3aabdf52969b075ef943dc8712643a05de85b10246b3a9ef67ad004d317c96c8a5ac4807eb970142de6e2feff43968c10c367b97
|
data/lib/eswrapsearch.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'elasticsearch'
|
2
2
|
|
3
|
-
|
3
|
+
#Very early stages for a nice wrapper
|
4
4
|
|
5
5
|
class EsWrapSearch
|
6
6
|
|
@@ -128,8 +128,8 @@ class EsWrapSearch
|
|
128
128
|
end
|
129
129
|
|
130
130
|
#Execute search, returns complete results set "ignoring type atm"
|
131
|
-
def search(index,type)
|
132
|
-
@lastresult = @@eclient.search index: index,
|
131
|
+
def search(index,type="")
|
132
|
+
@lastresult = @@eclient.search index: index, type: type, body: @body
|
133
133
|
@lastresult
|
134
134
|
end
|
135
135
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eswrapsearch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eugene Kuhn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A simple wrapper for Elasticsearch
|
14
14
|
email: kruiserx@gmail.com
|