elasticsearch-api 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -16,7 +16,7 @@ The library is compatible with Ruby 1.8.7 or higher.
16
16
 
17
17
  The library is compatible with Elasticsearch 0.90 and 1.0 -- you have to install and use a matching version, though.
18
18
 
19
- The 1.0 pre-release version and the master branch are compatible with **Elasticsearch 1.0** API.
19
+ The 1.x versions and the master branch are compatible with **Elasticsearch 1.0** API.
20
20
 
21
21
  To use the **Elasticsearch 0.90** API, install the **0.4.x** gem version or use the corresponding
22
22
  [`0.4`](https://github.com/elasticsearch/elasticsearch-ruby/tree/0.4) branch.
@@ -151,7 +151,7 @@ mash = Hashie::Mash.new response
151
151
  mash.hits.hits.first._source.title
152
152
  # => 'Test'
153
153
 
154
- response.facets.tags.terms.first
154
+ mash.facets.tags.terms.first
155
155
  # => #<Hashie::Mash count=3 term="z">
156
156
  ```
157
157
 
@@ -21,12 +21,13 @@ module Elasticsearch
21
21
  #
22
22
  # @option arguments [Hash] :body The definition of `commands` to perform (`move`, `cancel`, `allocate`)
23
23
  # @option arguments [Boolean] :dry_run Simulate the operation only and return the resulting state
24
+ # @option arguments [Boolean] :explain Return an explanation for why the commands can or cannot be executed
24
25
  # @option arguments [Boolean] :filter_metadata Don't return cluster state metadata (default: false)
25
26
  #
26
27
  # @see http://elasticsearch.org/guide/reference/api/admin-cluster-reroute/
27
28
  #
28
29
  def reroute(arguments={})
29
- valid_params = [ :dry_run, :filter_metadata ]
30
+ valid_params = [ :dry_run, :explain, :filter_metadata ]
30
31
 
31
32
  method = 'POST'
32
33
  path = "_cluster/reroute"
@@ -1,5 +1,5 @@
1
1
  module Elasticsearch
2
2
  module API
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
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: 1.0.0
4
+ version: 1.0.1
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 00:00:00.000000000 Z
12
+ date: 2014-03-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json