You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: elasticsearch-api/README.md
+14-35Lines changed: 14 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,56 +1,36 @@
1
1
# Elasticsearch::API
2
2
3
-
**This library is part of the [`elasticsearch-ruby`](https://github.com/elasticsearch/elasticsearch-ruby/) package;
4
-
please refer to it, unless you want to use this library standalone.**
3
+
**This library is part of the [`elasticsearch-ruby`](https://github.com/elasticsearch/elasticsearch-ruby/) package; please refer to it, unless you want to use this library standalone.**
5
4
6
5
----
7
6
8
-
The `elasticsearch-api` library provides a Ruby implementation of
9
-
the [Elasticsearch](http://elasticsearch.com) REST API.
7
+
The `elasticsearch-api` library provides a Ruby implementation of the [Elasticsearch](http://elasticsearch.com) REST API.
10
8
11
-
It does not provide an Elasticsearch client; see the
It does not provide an Elasticsearch client; see the [`elasticsearch-transport`](https://github.com/elasticsearch/elasticsearch-ruby/tree/master/elasticsearch-transport) library.
13
10
14
-
The library is compatible with Ruby 1.9 and higher.
15
-
16
-
It is compatible with Elasticsearch's API versions from 0.90 till current, just use a release matching major version of Elasticsearch.
17
-
18
-
| Ruby || Elasticsearch |
19
-
|:-------------:|:-:| :-----------: |
20
-
| 0.90 | → | 0.90 |
21
-
| 1.x | → | 1.x |
22
-
| 2.x | → | 2.x |
23
-
| 5.x | → | 5.x |
24
-
| 6.x | → | 6.x |
25
-
| 7.x | → | 7.x |
26
-
| master | → | master |
11
+
Language clients are forward compatible; meaning that clients support communicating with greater or equal minor versions of Elasticsearch. Elasticsearch language clients are only backwards compatible with default distributions and without guarantees made.
27
12
28
13
## Installation
29
14
30
15
Install the package from [Rubygems](https://rubygems.org):
31
16
32
-
gem install elasticsearch-api
33
-
34
-
To use an unreleased version, either add it to your `Gemfile` for [Bundler](http://gembundler.com):
The library is designed as a group of standalone Ruby modules, which can be mixed into a class
48
-
providing connection to Elasticsearch -- an Elasticsearch client.
29
+
The library is designed as a group of standalone Ruby modules, which can be mixed into a class providing connection to Elasticsearch -- an Elasticsearch client. It's possible to mix it into any client, and the methods will be available in the top namespace.
49
30
50
31
### Usage with the `elasticsearch` gem
51
32
52
-
**When you use the client from the [`elasticsearch-ruby`](https://github.com/elasticsearch/elasticsearch-ruby/) package,
53
-
the library modules have been already included**, so you just call the API methods:
33
+
**When you use the client from the [`elasticsearch-ruby`](https://github.com/elasticsearch/elasticsearch-ruby/) package, the library modules have been already included**, so you just call the API methods:
Copy file name to clipboardExpand all lines: elasticsearch-xpack/README.md
+14-17Lines changed: 14 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,45 +1,42 @@
1
1
# Elasticsearch::XPack
2
2
3
-
A Ruby integration for the [X-Pack extension](https://www.elastic.co/guide/en/x-pack/current/xpack-introduction.html) for Elasticsearch.
3
+
----
4
+
⚠ **This library is deprecated** ⚠
4
5
6
+
The API endpoints currently living in `elasticsearch-xpack` will be moved into `elasticsearch-api` in version 8.0.0 and forward. You should be able to keep using `elasticsearch-xpack` and the `xpack` namespace in `7.x`. We're running the same tests in `elasticsearch-xpack`, but if you encounter any problems, please let us know [in this issue](https://github.com/elastic/elasticsearch-ruby/issues/1274).
5
7
6
-
## Installation
8
+
However, be aware in `8.0`, the xpack library and namespace won't be available anymore.
7
9
8
-
Install the package from [Rubygems](https://rubygems.org):
10
+
----
9
11
10
-
gem install elasticsearch-xpack
12
+
A Ruby integration for the [X-Pack extension](https://www.elastic.co/guide/en/x-pack/current/xpack-introduction.html) for Elasticsearch.
11
13
12
-
To use an unreleased version, either add it to your `Gemfile` for [Bundler](http://gembundler.com):
Install the package from [Rubygems](https://rubygems.org):
15
17
18
+
gem install elasticsearch-api
16
19
17
20
## Usage
18
21
19
-
If you use the official [Ruby client for Elasticsearch](https://github.com/elastic/elasticsearch-ruby),
20
-
require the library in your code, and all the methods will be automatically available in the `xpack` namespace:
22
+
If you use the official [Ruby client for Elasticsearch](https://github.com/elastic/elasticsearch-ruby), all the methods will be automatically available:
The integration is designed as a standalone `Elasticsearch::XPack::API` module, so it's easy
33
-
to mix it into a different client, and the methods will be available in the top namespace.
33
+
The integration is designed as a standalone `Elasticsearch::XPack::API` module, so it's easy to mix it into a different client, and the methods will be available in the top namespace.
34
34
35
-
For documentation, look into the RDoc annotations in the source files, which contain links to the
36
-
official [X-Pack for the Elastic Stack](https://www.elastic.co/guide/en/x-pack/current/index.html) documentation.
35
+
For documentation, look into the RDoc annotations in the source files, which contain links to the official [X-Pack for the Elastic Stack](https://www.elastic.co/guide/en/x-pack/current/index.html) documentation.
37
36
38
37
For examples, look into the [`examples`](examples) folder in this repository.
39
38
40
-
You can use the provided `test:elasticsearch` Rake task to launch
41
-
a [Docker-based](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html)
42
-
Elasticsearch node with the full X-Pack license preinstalled.
39
+
You can use the provided `test:elasticsearch` Rake task to launch a [Docker-based](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html) Elasticsearch node with the full X-Pack license preinstalled.
0 commit comments