Installationedit

Install the Rubygem for the latest Elasticsearch version by using the following command:

gem install elasticsearch

Or add the elasticsearch Ruby gem to your Gemfile:

gem 'elasticsearch'

You can install the Ruby gem for a specific Elasticsearch version by using the following command:

gem install elasticsearch -v 7.0.0

Or you can add a specific version of Elasticsearch to your Gemfile:

gem 'elasticsearch', '~> 7.0'