Skip to content

Transport classes and utilities shared among Ruby Elastic client libraries

License

Notifications You must be signed in to change notification settings

elastic/elastic-transport-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fbff6b6 · Feb 18, 2025
Dec 27, 2024
Feb 14, 2025
Feb 14, 2025
Feb 14, 2025
Aug 15, 2022
Feb 18, 2025
Nov 29, 2024
Feb 14, 2025
Jun 25, 2024
Jun 21, 2021
Jul 5, 2023
Jan 27, 2023
Aug 22, 2023

Repository files navigation

Elastic Transport

8.1 tests Run tests

This gem provides a low-level Ruby client for connecting to an Elastic cluster. It powers both the Elasticsearch client and the Elastic Enterprise Search client.

In the simplest form, connect to Elasticsearch running on http://localhost:9200 without any configuration:

require 'elastic/transport'

client = Elastic::Transport::Client.new
response = client.perform_request('GET', '_cluster/health')
# => #<Elastic::Transport::Transport::Response:0x007fc5d506ce38 @status=200, @body={ ... } >

Refer to the official documentation on Elastic Transport.

Refer to Advanced Configuration to read about more configuration options.

Compatibility

This gem is compatible with maintained Ruby versions. See Ruby Maintenance Branches. We don't provide support to versions which have reached their end of life.

Development and Community

See CONTRIBUTING.

License

This software is licensed under the Apache 2 license.