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
which provides a Ruby API for the Elasticsearch RESTful API
57
12
@@ -73,11 +28,12 @@ client.search q: 'test'
73
28
```
74
29
75
30
Both of these libraries are extensively documented.
76
-
**Please read the [`elasticsearch-transport`](http://rubydoc.info/gems/elasticsearch-transport)
77
-
and the [`elasticsearch-api`](http://rubydoc.info/gems/elasticsearch-api) documentation carefully.**
31
+
**Please read the [`elasticsearch-transport`](http://rubydoc.info/gems/elasticsearch-transport) and the [`elasticsearch-api`](http://rubydoc.info/gems/elasticsearch-api) documentation carefully.**
78
32
79
-
_Keep in mind, that for optimal performance, you should use a HTTP library which supports persistent
80
-
("keep-alive") connections, e.g. [Patron](https://github.com/toland/patron) or [Typhoeus](https://github.com/typhoeus/typhoeus)._ These libraries are not dependencies of the elasticsearch gems, so be sure to define a dependency in your own application.
33
+
See also [`doc/examples`](https://github.com/elastic/elasticsearch-ruby/blob/master/docs/examples/README.md) for some practical examples.
34
+
35
+
**For optimal performance, you should use a HTTP library which supports persistent
36
+
("keep-alive") connections, e.g. [Patron](https://github.com/toland/patron) or [Typhoeus](https://github.com/typhoeus/typhoeus).** These libraries are not dependencies of the Elasticsearch gems. Ensure you define a dependency for a HTTP library in your own application.
81
37
82
38
This repository contains these additional Ruby libraries:
83
39
@@ -86,10 +42,46 @@ This repository contains these additional Ruby libraries:
which provides Ruby API for the [_X-Pack_](https://www.elastic.co/products/x-pack) APIs.
45
+
which provides a Ruby API for X-Pack APIs. This API is going to be merged into `elasticsearch-api` on v8.0.
90
46
91
47
Please see their respective READMEs for information and documentation.
92
48
49
+
For integration with Ruby models and Rails applications,
50
+
see the **[elasticsearch-rails](https://github.com/elasticsearch/elasticsearch-rails)** project.
51
+
52
+
## Compatibility
53
+
54
+
The Elasticsearch client is compatible with currently maintained Ruby versions. See [Ruby Maintenance Branches](https://www.ruby-lang.org/en/downloads/branches/). We don't provide support to versions which have reached their end of life.
55
+
56
+
The gem's version numbers follow Elasticsearch's major versions. The `master` branch is compatible with the Elasticsearch `master` branch, which is the next major version.
57
+
58
+
| Gem Version || Elasticsearch |
59
+
|:-------------:|:-:| :-----------: |
60
+
| 0.90 | → | 0.90 |
61
+
| 1.x | → | 1.x |
62
+
| 2.x | → | 2.x |
63
+
| 5.x | → | 5.x |
64
+
| 6.x | → | 6.x |
65
+
| 7.x | → | 7.x |
66
+
| master | → | master |
67
+
68
+
## Installation
69
+
70
+
Install the `elasticsearch` package from [Rubygems](https://rubygems.org/gems/elasticsearch):
71
+
72
+
gem install elasticsearch
73
+
74
+
To use an unreleased version, either add it to your `Gemfile` for [Bundler](http://gembundler.com):
-`apm`: A practical example of integrating elasticsearch-ruby and [Elastic APM](https://www.elastic.co/apm) with the [Ruby APM Agent](https://github.com/elastic/apm-agent-ruby). See the [the README](https://github.com/elastic/elasticsearch-ruby/tree/master/docs/examples/apm/README.md#observability-example).
6
+
-`guide`: Contains the generated Ruby code examples for the [Elasticsearch Reference](https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html).
7
+
-`percolator`: An example using a percolator in Elasticsearch version 5.x and higher.
8
+
-`rabbitmq`: Example of indexing the payload of a RabbitMQ queue.
0 commit comments