elasticsearch-api 0.4.8 → 0.4.9
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.
- data/Gemfile +6 -2
- data/README.md +4 -3
- data/lib/elasticsearch/api/version.rb +1 -1
- metadata +2 -2
data/Gemfile
CHANGED
@@ -3,10 +3,14 @@ source 'https://rubygems.org'
|
|
3
3
|
# Specify your gem's dependencies in elasticsearch-api.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
|
+
if File.exists? File.expand_path("../../elasticsearch-transport", __FILE__)
|
7
|
+
gem 'elasticsearch-transport', :path => File.expand_path("../../elasticsearch-transport", __FILE__), :require => true
|
8
|
+
end
|
9
|
+
|
6
10
|
if File.exists? File.expand_path("../../elasticsearch-extensions", __FILE__)
|
7
11
|
gem 'elasticsearch-extensions', :path => File.expand_path("../../elasticsearch-extensions", __FILE__), :require => true
|
8
12
|
end
|
9
13
|
|
10
|
-
if File.exists? File.expand_path("../../elasticsearch
|
11
|
-
gem 'elasticsearch
|
14
|
+
if File.exists? File.expand_path("../../elasticsearch/elasticsearch.gemspec", __FILE__)
|
15
|
+
gem 'elasticsearch', :path => File.expand_path("../../elasticsearch", __FILE__), :require => false
|
12
16
|
end
|
data/README.md
CHANGED
@@ -54,17 +54,18 @@ require 'elasticsearch'
|
|
54
54
|
client = Elasticsearch::Client.new log: true
|
55
55
|
|
56
56
|
client.index index: 'myindex', type: 'mytype', id: 1, body: { title: 'Test' }
|
57
|
-
# => {"
|
57
|
+
# => {"_index"=>"myindex", ... "created"=>true}
|
58
58
|
|
59
59
|
client.search index: 'myindex', body: { query: { match: { title: 'test' } } }
|
60
60
|
# => {"took"=>2, ..., "hits"=>{"total":5, ...}}
|
61
61
|
```
|
62
62
|
|
63
|
-
Full documentation
|
63
|
+
Full documentation and examples are included as RDoc annotations in the source code
|
64
|
+
and available online at <http://rubydoc.info/gems/elasticsearch-api>.
|
64
65
|
|
65
66
|
### Usage with a custom client
|
66
67
|
|
67
|
-
When you want to mix the library into
|
68
|
+
When you want to mix the library into your own client, it must conform to a following _contract_:
|
68
69
|
|
69
70
|
* It responds to a `perform_request(method, path, params, body)` method,
|
70
71
|
* the method returns an object with `status`, `body` and `headers` methods.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticsearch-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|