elasticsearch-api 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/lib/elasticsearch/api/actions/bulk.rb +0 -1
- data/lib/elasticsearch/api/actions/cluster/reroute.rb +5 -2
- data/lib/elasticsearch/api/actions/delete_by_query.rb +1 -1
- data/lib/elasticsearch/api/actions/delete_script.rb +9 -2
- data/lib/elasticsearch/api/actions/indices/get.rb +41 -0
- data/lib/elasticsearch/api/actions/indices/upgrade.rb +38 -0
- data/lib/elasticsearch/api/actions/mtermvectors.rb +3 -0
- data/lib/elasticsearch/api/actions/put_script.rb +10 -2
- data/lib/elasticsearch/api/actions/scroll.rb +0 -1
- data/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +33 -0
- data/lib/elasticsearch/api/actions/termvector.rb +3 -0
- data/lib/elasticsearch/api/version.rb +1 -1
- data/test/unit/indices/get_test.rb +45 -0
- data/test/unit/indices/upgrade_test.rb +26 -0
- data/test/unit/snapshot/verify_repository_test.rb +26 -0
- metadata +63 -55
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NjYxZDkwNTBlN2Q5MDIwYjVmNWY2YWQzYjIyMDJmZDgwZTc1N2Y4MQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b1554532d71fd5117adb7ac3122e6511562ca46b
|
4
|
+
data.tar.gz: afd742d0f2bda5ef8b46ded7bc55f1a2f3db27a1
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
ZDBkMWYzMjc1NDgxYWU3NGNlYTM0YmE1NmJiZDdjMDRkNDE2ZTM3ODA1NTkx
|
11
|
-
ZGMxZmY3NzZmNDU3MmU5MGI5MDYzMzc4MDAyMmFhOWI5YWNhYTY=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NzM3MTNhNjY4YWE2YTM4OWI5ZDM4NGM4YTFjYzdhNjQ5MzM4OTFmZDZiNGQ2
|
14
|
-
MTU1N2U4OGJmNWVjNDI4ODNiN2VjNjE0NzIwMTVmYzgxYjc2OWMwYWQ0MjE1
|
15
|
-
ZWRiNmVjYzU4ZDc0MTQ1YTdmYzQ3ZTYyODY5MWE1ZTQyZDA2ZjU=
|
6
|
+
metadata.gz: a46bcd15c661d6fff1d90eab4ec2d950b992f17e71e89515d9090d6166f6263b6d7a6df079ba78f634c162b03abb0c4881adc0bd2cd8ace5c0b77b1a5302e3af
|
7
|
+
data.tar.gz: 16b84a016789792774afa4cb84107b69ae4483ac31949c2efa0bd491041fe1bb81f34928fb9287b1e4afa9f35b9e67782d022c87e6887646ef040a775287bcb6
|
@@ -51,7 +51,6 @@ module Elasticsearch
|
|
51
51
|
# (options: one, quorum, all)
|
52
52
|
# @option arguments [Boolean] :refresh Refresh the index after performing the operation
|
53
53
|
# @option arguments [String] :replication Explicitely set the replication type (options: sync, async)
|
54
|
-
# @option arguments [String] :type Default document type for items which don't provide one
|
55
54
|
# @option arguments [Time] :timeout Explicit operation timeout
|
56
55
|
#
|
57
56
|
# @return [Hash] Deserialized Elasticsearch response
|
@@ -22,12 +22,15 @@ module Elasticsearch
|
|
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
24
|
# @option arguments [Boolean] :explain Return an explanation for why the commands can or cannot be executed
|
25
|
-
# @option arguments [Boolean] :
|
25
|
+
# @option arguments [Boolean] :metric Limit the information returned to the specified metrics.
|
26
|
+
# Defaults to all but metadata. (Options: _all, blocks, metadata,
|
27
|
+
# nodes, routing_table, master_node, version)
|
28
|
+
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
26
29
|
#
|
27
30
|
# @see http://elasticsearch.org/guide/reference/api/admin-cluster-reroute/
|
28
31
|
#
|
29
32
|
def reroute(arguments={})
|
30
|
-
valid_params = [ :dry_run, :explain, :
|
33
|
+
valid_params = [ :dry_run, :explain, :metric, :master_timeout, :timeout ]
|
31
34
|
|
32
35
|
method = 'POST'
|
33
36
|
path = "_cluster/reroute"
|
@@ -13,7 +13,7 @@ module Elasticsearch
|
|
13
13
|
#
|
14
14
|
# @example Deleting documents using the Query DSL
|
15
15
|
#
|
16
|
-
# client.delete_by_query index: 'myindex', body: { term: { published: false } }
|
16
|
+
# client.delete_by_query index: 'myindex', body: { query: { term: { published: false } } }
|
17
17
|
#
|
18
18
|
# @option arguments [List] :index A comma-separated list of indices to restrict the operation;
|
19
19
|
# use `_all`to perform the operation on all indices (*Required*)
|
@@ -6,15 +6,22 @@ module Elasticsearch
|
|
6
6
|
#
|
7
7
|
# @option arguments [String] :id Script ID (*Required*)
|
8
8
|
# @option arguments [String] :lang Script language (*Required*)
|
9
|
+
# @option arguments [Number] :version Explicit version number for concurrency control
|
10
|
+
# @option arguments [String] :version_type Specific version type (options: internal, external, external_gte, force)
|
9
11
|
#
|
10
12
|
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-scripting.html
|
11
13
|
#
|
12
14
|
def delete_script(arguments={})
|
13
15
|
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
|
14
16
|
raise ArgumentError, "Required argument 'lang' missing" unless arguments[:lang]
|
17
|
+
|
18
|
+
valid_params = [
|
19
|
+
:version,
|
20
|
+
:version_type ]
|
21
|
+
|
15
22
|
method = 'DELETE'
|
16
|
-
path = "_scripts/#{arguments
|
17
|
-
params =
|
23
|
+
path = "_scripts/#{arguments.delete(:lang)}/#{arguments[:id]}"
|
24
|
+
params = Utils.__validate_and_extract_params arguments, valid_params
|
18
25
|
body = nil
|
19
26
|
|
20
27
|
perform_request(method, path, params, body).body
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module Elasticsearch
|
2
|
+
module API
|
3
|
+
module Indices
|
4
|
+
module Actions
|
5
|
+
|
6
|
+
# Retrieve information about one or more indices
|
7
|
+
#
|
8
|
+
# @option arguments [List] :index A comma-separated list of index names (*Required*)
|
9
|
+
# @option arguments [List] :feature A comma-separated list of features
|
10
|
+
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
11
|
+
# (default: false)
|
12
|
+
# @option arguments [Boolean] :ignore_unavailable Ignore unavailable indexes (default: false)
|
13
|
+
# @option arguments [Boolean] :allow_no_indices Ignore if a wildcard expression resolves to no concrete
|
14
|
+
# indices (default: false)
|
15
|
+
# @option arguments [List] :expand_wildcards Whether wildcard expressions should get expanded
|
16
|
+
# to open or closed indices (default: open)
|
17
|
+
#
|
18
|
+
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/indices-get-index.html
|
19
|
+
#
|
20
|
+
def get(arguments={})
|
21
|
+
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
22
|
+
|
23
|
+
valid_params = [
|
24
|
+
:local,
|
25
|
+
:ignore_unavailable,
|
26
|
+
:allow_no_indices,
|
27
|
+
:expand_wildcards ]
|
28
|
+
|
29
|
+
method = 'GET'
|
30
|
+
|
31
|
+
path = Utils.__pathify Utils.__listify(arguments[:index]), Utils.__listify(arguments.delete(:feature))
|
32
|
+
|
33
|
+
params = Utils.__validate_and_extract_params arguments, valid_params
|
34
|
+
body = nil
|
35
|
+
|
36
|
+
perform_request(method, path, params, body).body
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
module Elasticsearch
|
2
|
+
module API
|
3
|
+
module Indices
|
4
|
+
module Actions
|
5
|
+
|
6
|
+
# Upgrade the index or indices to the latest Lucene format.
|
7
|
+
#
|
8
|
+
# @option arguments [List] :index A comma-separated list of index names;
|
9
|
+
# use `_all` or empty string to perform the operation on all indices
|
10
|
+
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored
|
11
|
+
# when unavailable (missing or closed)
|
12
|
+
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression
|
13
|
+
# resolves into no concrete indices.
|
14
|
+
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices
|
15
|
+
# that are open, closed or both. (options: open, closed)
|
16
|
+
# @option arguments [Boolean] :wait_for_completion Specify whether the request should block until the all
|
17
|
+
# segments are upgraded (default: true)
|
18
|
+
#
|
19
|
+
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/indices-upgrade.html
|
20
|
+
#
|
21
|
+
def upgrade(arguments={})
|
22
|
+
valid_params = [
|
23
|
+
:ignore_unavailable,
|
24
|
+
:allow_no_indices,
|
25
|
+
:expand_wildcards,
|
26
|
+
:wait_for_completion ]
|
27
|
+
|
28
|
+
method = 'POST'
|
29
|
+
path = "_upgrade"
|
30
|
+
params = Utils.__validate_and_extract_params arguments, valid_params
|
31
|
+
body = nil
|
32
|
+
|
33
|
+
perform_request(method, path, params, body).body
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -24,6 +24,8 @@ module Elasticsearch
|
|
24
24
|
# @option arguments [Boolean] :payloads Whether term payloads should be returned
|
25
25
|
# @option arguments [String] :preference Specify the node or shard the operation should be performed on
|
26
26
|
# (default: random)
|
27
|
+
# @option arguments [String] :realtime Specifies if requests are real-time as opposed to near-real-time
|
28
|
+
# (default: true)
|
27
29
|
# @option arguments [String] :routing Specific routing value
|
28
30
|
# @option arguments [String] :parent Parent ID of documents
|
29
31
|
#
|
@@ -42,6 +44,7 @@ module Elasticsearch
|
|
42
44
|
:positions,
|
43
45
|
:payloads,
|
44
46
|
:preference,
|
47
|
+
:realtime,
|
45
48
|
:routing,
|
46
49
|
:parent ]
|
47
50
|
|
@@ -21,6 +21,9 @@ module Elasticsearch
|
|
21
21
|
# @option arguments [String] :id Script ID (*Required*)
|
22
22
|
# @option arguments [String] :lang Script language (*Required*)
|
23
23
|
# @option arguments [Hash] :body A JSON document containing the script (*Required*)
|
24
|
+
# @option arguments [Number] :version Explicit version number for concurrency control
|
25
|
+
# @option arguments [String] :version_type Specific version type (options: internal, external, external_gte, force)
|
26
|
+
# @option arguments [String] :op_type Explicit operation type (options: index, create)
|
24
27
|
#
|
25
28
|
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-scripting.html#_indexed_scripts
|
26
29
|
#
|
@@ -29,10 +32,15 @@ module Elasticsearch
|
|
29
32
|
raise ArgumentError, "Required argument 'lang' missing" unless arguments[:lang]
|
30
33
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
31
34
|
|
35
|
+
valid_params = [
|
36
|
+
:op_type,
|
37
|
+
:version,
|
38
|
+
:version_type ]
|
39
|
+
|
32
40
|
method = 'PUT'
|
33
|
-
path = "_scripts/#{arguments
|
41
|
+
path = "_scripts/#{arguments.delete(:lang)}/#{arguments[:id]}"
|
34
42
|
|
35
|
-
params =
|
43
|
+
params = Utils.__validate_and_extract_params arguments, valid_params
|
36
44
|
|
37
45
|
body = arguments[:body]
|
38
46
|
|
@@ -38,7 +38,6 @@ module Elasticsearch
|
|
38
38
|
# @option arguments [Hash] :body The scroll ID if not passed by URL or query parameter.
|
39
39
|
# @option arguments [Duration] :scroll Specify how long a consistent view of the index
|
40
40
|
# should be maintained for scrolled search
|
41
|
-
# @option arguments [String] :scroll_id The scroll ID for scrolled search
|
42
41
|
#
|
43
42
|
# @see http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/scan-scroll.html#scan-scroll
|
44
43
|
# @see http://www.elasticsearch.org/guide/reference/api/search/scroll/
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module Elasticsearch
|
2
|
+
module API
|
3
|
+
module Snapshot
|
4
|
+
module Actions
|
5
|
+
|
6
|
+
# Explicitely perform the verification of a repository
|
7
|
+
#
|
8
|
+
# @option arguments [String] :repository A repository name (*Required*)
|
9
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
10
|
+
# @option arguments [Time] :timeout Explicit operation timeout
|
11
|
+
#
|
12
|
+
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html
|
13
|
+
#
|
14
|
+
def verify_repository(arguments={})
|
15
|
+
raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository]
|
16
|
+
|
17
|
+
valid_params = [
|
18
|
+
:repository,
|
19
|
+
:master_timeout,
|
20
|
+
:timeout ]
|
21
|
+
|
22
|
+
repository = arguments.delete(:repository)
|
23
|
+
method = 'POST'
|
24
|
+
path = Utils.__pathify( '_snapshot', Utils.__escape(repository), '_verify' )
|
25
|
+
params = Utils.__validate_and_extract_params arguments, valid_params
|
26
|
+
body = nil
|
27
|
+
|
28
|
+
perform_request(method, path, params, body).body
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -39,6 +39,8 @@ module Elasticsearch
|
|
39
39
|
# @option arguments [Boolean] :payloads Whether term payloads should be returned
|
40
40
|
# @option arguments [String] :preference Specify the node or shard the operation should be performed on
|
41
41
|
# (default: random)
|
42
|
+
# @option arguments [String] :realtime Specifies if requests are real-time as opposed to near-real-time
|
43
|
+
# (default: true)
|
42
44
|
# @option arguments [String] :routing Specific routing value
|
43
45
|
# @option arguments [String] :parent Parent ID of the documents
|
44
46
|
#
|
@@ -57,6 +59,7 @@ module Elasticsearch
|
|
57
59
|
:positions,
|
58
60
|
:payloads,
|
59
61
|
:preference,
|
62
|
+
:realtime,
|
60
63
|
:routing,
|
61
64
|
:parent ]
|
62
65
|
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module Elasticsearch
|
4
|
+
module Test
|
5
|
+
class IndicesGetTest < ::Test::Unit::TestCase
|
6
|
+
|
7
|
+
context "Indices: Get" do
|
8
|
+
subject { FakeClient.new }
|
9
|
+
|
10
|
+
should "perform correct request" do
|
11
|
+
subject.expects(:perform_request).with do |method, url, params, body|
|
12
|
+
assert_equal 'GET', method
|
13
|
+
assert_equal 'foo', url
|
14
|
+
assert_equal Hash.new, params
|
15
|
+
assert_nil body
|
16
|
+
true
|
17
|
+
end.returns(FakeResponse.new)
|
18
|
+
|
19
|
+
subject.indices.get :index => 'foo'
|
20
|
+
end
|
21
|
+
|
22
|
+
should "pass the URL parameters" do
|
23
|
+
subject.expects(:perform_request).with do |method, url, params, body|
|
24
|
+
assert_equal 'foo', url
|
25
|
+
assert_equal 1, params[:ignore_unavailable]
|
26
|
+
true
|
27
|
+
end.returns(FakeResponse.new)
|
28
|
+
|
29
|
+
subject.indices.get :index => 'foo', :ignore_unavailable => 1
|
30
|
+
end
|
31
|
+
|
32
|
+
should "encode features in URL" do
|
33
|
+
subject.expects(:perform_request).with do |method, url, params, body|
|
34
|
+
assert_equal 'foo/_settings', url
|
35
|
+
true
|
36
|
+
end.returns(FakeResponse.new)
|
37
|
+
|
38
|
+
subject.indices.get :index => 'foo', :feature => '_settings'
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module Elasticsearch
|
4
|
+
module Test
|
5
|
+
class IndicesUpgradeTest < ::Test::Unit::TestCase
|
6
|
+
|
7
|
+
context "Indices: Upgrade" do
|
8
|
+
subject { FakeClient.new }
|
9
|
+
|
10
|
+
should "perform correct request" do
|
11
|
+
subject.expects(:perform_request).with do |method, url, params, body|
|
12
|
+
assert_equal 'POST', method
|
13
|
+
assert_equal '_upgrade', url
|
14
|
+
assert_equal Hash.new, params
|
15
|
+
assert_nil body
|
16
|
+
true
|
17
|
+
end.returns(FakeResponse.new)
|
18
|
+
|
19
|
+
subject.indices.upgrade
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module Elasticsearch
|
4
|
+
module Test
|
5
|
+
class SnapshotVerifyRepositoryTest < ::Test::Unit::TestCase
|
6
|
+
|
7
|
+
context "Snapshot: Verify repository" do
|
8
|
+
subject { FakeClient.new }
|
9
|
+
|
10
|
+
should "perform correct request" do
|
11
|
+
subject.expects(:perform_request).with do |method, url, params, body|
|
12
|
+
assert_equal 'POST', method
|
13
|
+
assert_equal '_snapshot/foo/_verify', url
|
14
|
+
assert_equal Hash.new, params
|
15
|
+
assert_nil body
|
16
|
+
true
|
17
|
+
end.returns(FakeResponse.new)
|
18
|
+
|
19
|
+
subject.snapshot.verify_repository :repository => 'foo'
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,340 +1,339 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticsearch-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karel Minarik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: elasticsearch
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: elasticsearch-transport
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: minitest
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '4.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '4.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: elasticsearch-extensions
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: ansi
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: shoulda-context
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: mocha
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- -
|
143
|
+
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: turn
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- -
|
157
|
+
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: '0'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- -
|
164
|
+
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: yard
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- -
|
171
|
+
- - ">="
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: '0'
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- -
|
178
|
+
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: pry
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- -
|
185
|
+
- - ">="
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: '0'
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- -
|
192
|
+
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: ci_reporter
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- - ~>
|
199
|
+
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: '1.9'
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- - ~>
|
206
|
+
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '1.9'
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: jsonify
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
|
-
- -
|
213
|
+
- - ">="
|
214
214
|
- !ruby/object:Gem::Version
|
215
215
|
version: '0'
|
216
216
|
type: :development
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
|
-
- -
|
220
|
+
- - ">="
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: '0'
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: hashie
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
|
-
- -
|
227
|
+
- - ">="
|
228
228
|
- !ruby/object:Gem::Version
|
229
229
|
version: '0'
|
230
230
|
type: :development
|
231
231
|
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
|
-
- -
|
234
|
+
- - ">="
|
235
235
|
- !ruby/object:Gem::Version
|
236
236
|
version: '0'
|
237
237
|
- !ruby/object:Gem::Dependency
|
238
238
|
name: ruby-prof
|
239
239
|
requirement: !ruby/object:Gem::Requirement
|
240
240
|
requirements:
|
241
|
-
- -
|
241
|
+
- - ">="
|
242
242
|
- !ruby/object:Gem::Version
|
243
243
|
version: '0'
|
244
244
|
type: :development
|
245
245
|
prerelease: false
|
246
246
|
version_requirements: !ruby/object:Gem::Requirement
|
247
247
|
requirements:
|
248
|
-
- -
|
248
|
+
- - ">="
|
249
249
|
- !ruby/object:Gem::Version
|
250
250
|
version: '0'
|
251
251
|
- !ruby/object:Gem::Dependency
|
252
252
|
name: jbuilder
|
253
253
|
requirement: !ruby/object:Gem::Requirement
|
254
254
|
requirements:
|
255
|
-
- -
|
255
|
+
- - ">="
|
256
256
|
- !ruby/object:Gem::Version
|
257
257
|
version: '0'
|
258
258
|
type: :development
|
259
259
|
prerelease: false
|
260
260
|
version_requirements: !ruby/object:Gem::Requirement
|
261
261
|
requirements:
|
262
|
-
- -
|
262
|
+
- - ">="
|
263
263
|
- !ruby/object:Gem::Version
|
264
264
|
version: '0'
|
265
265
|
- !ruby/object:Gem::Dependency
|
266
266
|
name: escape_utils
|
267
267
|
requirement: !ruby/object:Gem::Requirement
|
268
268
|
requirements:
|
269
|
-
- -
|
269
|
+
- - ">="
|
270
270
|
- !ruby/object:Gem::Version
|
271
271
|
version: '0'
|
272
272
|
type: :development
|
273
273
|
prerelease: false
|
274
274
|
version_requirements: !ruby/object:Gem::Requirement
|
275
275
|
requirements:
|
276
|
-
- -
|
276
|
+
- - ">="
|
277
277
|
- !ruby/object:Gem::Version
|
278
278
|
version: '0'
|
279
279
|
- !ruby/object:Gem::Dependency
|
280
280
|
name: simplecov
|
281
281
|
requirement: !ruby/object:Gem::Requirement
|
282
282
|
requirements:
|
283
|
-
- -
|
283
|
+
- - ">="
|
284
284
|
- !ruby/object:Gem::Version
|
285
285
|
version: '0'
|
286
286
|
type: :development
|
287
287
|
prerelease: false
|
288
288
|
version_requirements: !ruby/object:Gem::Requirement
|
289
289
|
requirements:
|
290
|
-
- -
|
290
|
+
- - ">="
|
291
291
|
- !ruby/object:Gem::Version
|
292
292
|
version: '0'
|
293
293
|
- !ruby/object:Gem::Dependency
|
294
294
|
name: simplecov-rcov
|
295
295
|
requirement: !ruby/object:Gem::Requirement
|
296
296
|
requirements:
|
297
|
-
- -
|
297
|
+
- - ">="
|
298
298
|
- !ruby/object:Gem::Version
|
299
299
|
version: '0'
|
300
300
|
type: :development
|
301
301
|
prerelease: false
|
302
302
|
version_requirements: !ruby/object:Gem::Requirement
|
303
303
|
requirements:
|
304
|
-
- -
|
304
|
+
- - ">="
|
305
305
|
- !ruby/object:Gem::Version
|
306
306
|
version: '0'
|
307
307
|
- !ruby/object:Gem::Dependency
|
308
308
|
name: cane
|
309
309
|
requirement: !ruby/object:Gem::Requirement
|
310
310
|
requirements:
|
311
|
-
- -
|
311
|
+
- - ">="
|
312
312
|
- !ruby/object:Gem::Version
|
313
313
|
version: '0'
|
314
314
|
type: :development
|
315
315
|
prerelease: false
|
316
316
|
version_requirements: !ruby/object:Gem::Requirement
|
317
317
|
requirements:
|
318
|
-
- -
|
318
|
+
- - ">="
|
319
319
|
- !ruby/object:Gem::Version
|
320
320
|
version: '0'
|
321
321
|
- !ruby/object:Gem::Dependency
|
322
322
|
name: require-prof
|
323
323
|
requirement: !ruby/object:Gem::Requirement
|
324
324
|
requirements:
|
325
|
-
- -
|
325
|
+
- - ">="
|
326
326
|
- !ruby/object:Gem::Version
|
327
327
|
version: '0'
|
328
328
|
type: :development
|
329
329
|
prerelease: false
|
330
330
|
version_requirements: !ruby/object:Gem::Requirement
|
331
331
|
requirements:
|
332
|
-
- -
|
332
|
+
- - ">="
|
333
333
|
- !ruby/object:Gem::Version
|
334
334
|
version: '0'
|
335
|
-
description:
|
336
|
-
|
337
|
-
'
|
335
|
+
description: |
|
336
|
+
Ruby API for Elasticsearch. See the `elasticsearch` gem for full integration.
|
338
337
|
email:
|
339
338
|
- karel.minarik@elasticsearch.org
|
340
339
|
executables: []
|
@@ -343,7 +342,7 @@ extra_rdoc_files:
|
|
343
342
|
- README.md
|
344
343
|
- LICENSE.txt
|
345
344
|
files:
|
346
|
-
- .gitignore
|
345
|
+
- ".gitignore"
|
347
346
|
- Gemfile
|
348
347
|
- LICENSE.txt
|
349
348
|
- README.md
|
@@ -402,6 +401,7 @@ files:
|
|
402
401
|
- lib/elasticsearch/api/actions/indices/exists_template.rb
|
403
402
|
- lib/elasticsearch/api/actions/indices/exists_type.rb
|
404
403
|
- lib/elasticsearch/api/actions/indices/flush.rb
|
404
|
+
- lib/elasticsearch/api/actions/indices/get.rb
|
405
405
|
- lib/elasticsearch/api/actions/indices/get_alias.rb
|
406
406
|
- lib/elasticsearch/api/actions/indices/get_aliases.rb
|
407
407
|
- lib/elasticsearch/api/actions/indices/get_field_mapping.rb
|
@@ -423,6 +423,7 @@ files:
|
|
423
423
|
- lib/elasticsearch/api/actions/indices/stats.rb
|
424
424
|
- lib/elasticsearch/api/actions/indices/status.rb
|
425
425
|
- lib/elasticsearch/api/actions/indices/update_aliases.rb
|
426
|
+
- lib/elasticsearch/api/actions/indices/upgrade.rb
|
426
427
|
- lib/elasticsearch/api/actions/indices/validate_query.rb
|
427
428
|
- lib/elasticsearch/api/actions/info.rb
|
428
429
|
- lib/elasticsearch/api/actions/list_benchmarks.rb
|
@@ -451,6 +452,7 @@ files:
|
|
451
452
|
- lib/elasticsearch/api/actions/snapshot/get_repository.rb
|
452
453
|
- lib/elasticsearch/api/actions/snapshot/restore.rb
|
453
454
|
- lib/elasticsearch/api/actions/snapshot/status.rb
|
455
|
+
- lib/elasticsearch/api/actions/snapshot/verify_repository.rb
|
454
456
|
- lib/elasticsearch/api/actions/suggest.rb
|
455
457
|
- lib/elasticsearch/api/actions/termvector.rb
|
456
458
|
- lib/elasticsearch/api/actions/update.rb
|
@@ -523,6 +525,7 @@ files:
|
|
523
525
|
- test/unit/indices/get_mapping_test.rb
|
524
526
|
- test/unit/indices/get_settings_test.rb
|
525
527
|
- test/unit/indices/get_template_test.rb
|
528
|
+
- test/unit/indices/get_test.rb
|
526
529
|
- test/unit/indices/get_warmer_test.rb
|
527
530
|
- test/unit/indices/open_test.rb
|
528
531
|
- test/unit/indices/optimize_test.rb
|
@@ -538,6 +541,7 @@ files:
|
|
538
541
|
- test/unit/indices/stats_test.rb
|
539
542
|
- test/unit/indices/status_test.rb
|
540
543
|
- test/unit/indices/update_aliases_test.rb
|
544
|
+
- test/unit/indices/upgrade_test.rb
|
541
545
|
- test/unit/indices/validate_query_test.rb
|
542
546
|
- test/unit/info_test.rb
|
543
547
|
- test/unit/json_builders_test.rb
|
@@ -567,6 +571,7 @@ files:
|
|
567
571
|
- test/unit/snapshot/get_test.rb
|
568
572
|
- test/unit/snapshot/restore_test.rb
|
569
573
|
- test/unit/snapshot/status_test.rb
|
574
|
+
- test/unit/snapshot/verify_repository_test.rb
|
570
575
|
- test/unit/suggest_test.rb
|
571
576
|
- test/unit/termvector_test.rb
|
572
577
|
- test/unit/update_document_test.rb
|
@@ -577,17 +582,17 @@ licenses:
|
|
577
582
|
metadata: {}
|
578
583
|
post_install_message:
|
579
584
|
rdoc_options:
|
580
|
-
- --charset=UTF-8
|
585
|
+
- "--charset=UTF-8"
|
581
586
|
require_paths:
|
582
587
|
- lib
|
583
588
|
required_ruby_version: !ruby/object:Gem::Requirement
|
584
589
|
requirements:
|
585
|
-
- -
|
590
|
+
- - ">="
|
586
591
|
- !ruby/object:Gem::Version
|
587
592
|
version: '0'
|
588
593
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
589
594
|
requirements:
|
590
|
-
- -
|
595
|
+
- - ">="
|
591
596
|
- !ruby/object:Gem::Version
|
592
597
|
version: '0'
|
593
598
|
requirements: []
|
@@ -658,6 +663,7 @@ test_files:
|
|
658
663
|
- test/unit/indices/get_mapping_test.rb
|
659
664
|
- test/unit/indices/get_settings_test.rb
|
660
665
|
- test/unit/indices/get_template_test.rb
|
666
|
+
- test/unit/indices/get_test.rb
|
661
667
|
- test/unit/indices/get_warmer_test.rb
|
662
668
|
- test/unit/indices/open_test.rb
|
663
669
|
- test/unit/indices/optimize_test.rb
|
@@ -673,6 +679,7 @@ test_files:
|
|
673
679
|
- test/unit/indices/stats_test.rb
|
674
680
|
- test/unit/indices/status_test.rb
|
675
681
|
- test/unit/indices/update_aliases_test.rb
|
682
|
+
- test/unit/indices/upgrade_test.rb
|
676
683
|
- test/unit/indices/validate_query_test.rb
|
677
684
|
- test/unit/info_test.rb
|
678
685
|
- test/unit/json_builders_test.rb
|
@@ -702,6 +709,7 @@ test_files:
|
|
702
709
|
- test/unit/snapshot/get_test.rb
|
703
710
|
- test/unit/snapshot/restore_test.rb
|
704
711
|
- test/unit/snapshot/status_test.rb
|
712
|
+
- test/unit/snapshot/verify_repository_test.rb
|
705
713
|
- test/unit/suggest_test.rb
|
706
714
|
- test/unit/termvector_test.rb
|
707
715
|
- test/unit/update_document_test.rb
|