к каталогу

📦 elasticsearch-ruby/ elastic

Ruby integrations for Elasticsearch

Открыть на GitHubобновлён 3д назад
Звёзды
2.0k
Форки
617
За неделю
За месяц
Рост %
Язык
Ruby

Установка и запуск

Installation

gem install elasticsearch

Refer to the Installation section of the getting started documentation.

Usage

require 'elasticsearch'
client = Elasticsearch::Client.new(host: 'https://my-elasticsearch-host.example')
client.ping
client.search(q: 'test')

Refer to the official documentation for examples of how to use the most frequently called APIs and doc/examples for some practical examples.

For optimal performance, you should use a HTTP library which supports persistent ("keep-alive") connections, e.g. Patron or Typhoeus. These libraries are not dependencies of the Elasticsearch gems. Ensure you define a dependency for a HTTP library in your own application.

Из README репозитория · полный README на GitHub

Теги

clientelasticelasticsearchrubyrubynlpsearch