File: installation.asciidoc

package info (click to toggle)
ruby-elasticsearch 7.17.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,820 kB
  • sloc: ruby: 44,308; sh: 16; makefile: 2
file content (43 lines) | stat: -rw-r--r-- 1,339 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[[ruby-install]]
== Installation

Install the Rubygem for the latest {es} version by using the following command:

[source,sh]
------------------------------------
gem install elasticsearch
------------------------------------


Or add the `elasticsearch` Ruby gem to your Gemfile:

[source,ruby]
------------------------------------
gem 'elasticsearch'
------------------------------------



You can install the Ruby gem for a specific {es} version by using the following 
command:

[source,sh]
------------------------------------
gem install elasticsearch -v 7.0.0
------------------------------------


Or you can add a specific version of {es} to your Gemfile:

[source,ruby]
------------------------------------
gem 'elasticsearch', '~> 7.0'
------------------------------------


[discrete]
=== {es} and Ruby Version Compatibility

The {es} client is compatible with currently maintained Ruby versions. We follow Ruby’s own maintenance policy and officially support all currently maintained versions per https://www.ruby-lang.org/en/downloads/branches/[Ruby Maintenance Branches].

Language clients are forward compatible; meaning that clients support communicating with greater or equal minor versions of {es}. Elasticsearch language clients are only backwards compatible with default distributions and without guarantees made.