[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8082":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":16,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":19,"hasPages":19,"topics":21,"createdAt":10,"pushedAt":10,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},8082,"elasticsearch-ruby","elastic\u002Felasticsearch-ruby","elastic","Ruby integrations for Elasticsearch","https:\u002F\u002Fwww.elastic.co\u002Fdocs\u002Freference\u002Felasticsearch\u002Fclients\u002Fruby",null,"Ruby",1978,616,337,9,0,21.37,"Apache License 2.0",false,"main",[22,7,23,24,25,26],"client","elasticsearch","ruby","rubynlp","search","2026-06-12 02:01:48","# Elasticsearch\n[![8.19](https:\u002F\u002Fgithub.com\u002Felastic\u002Felasticsearch-ruby\u002Factions\u002Fworkflows\u002F8.19.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Felastic\u002Felasticsearch-ruby\u002Factions\u002Fworkflows\u002F8.19.yml) [![9.3](https:\u002F\u002Fgithub.com\u002Felastic\u002Felasticsearch-ruby\u002Factions\u002Fworkflows\u002F9.3.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Felastic\u002Felasticsearch-ruby\u002Factions\u002Fworkflows\u002F9.3.yml)  [![9.4](https:\u002F\u002Fgithub.com\u002Felastic\u002Felasticsearch-ruby\u002Factions\u002Fworkflows\u002F9.4.yml\u002Fbadge.svg?branch=9.4)](https:\u002F\u002Fgithub.com\u002Felastic\u002Felasticsearch-ruby\u002Factions\u002Fworkflows\u002F9.4.yml) [![main](https:\u002F\u002Fgithub.com\u002Felastic\u002Felasticsearch-ruby\u002Factions\u002Fworkflows\u002Fmain.yml\u002Fbadge.svg?branch=main)](https:\u002F\u002Fgithub.com\u002Felastic\u002Felasticsearch-ruby\u002Factions\u002Fworkflows\u002Fmain.yml) [![Build status](https:\u002F\u002Fbadge.buildkite.com\u002Fe50e66eb71bf6566a6479c8a29b25458f6781ee8e52cee8d96.svg)](https:\u002F\u002Fbuildkite.com\u002Felastic\u002Felasticsearch-ruby)\n\n**[Download the latest version of Elasticsearch](https:\u002F\u002Fwww.elastic.co\u002Fdownloads\u002Felasticsearch)**\nor\n**[sign-up](https:\u002F\u002Fcloud.elastic.co\u002Fregistration?elektra=en-ess-sign-up-page)**\n**for a free trial of Elastic Cloud**.\n\nThis repository contains the official [Elasticsearch](https:\u002F\u002Fwww.elastic.co\u002Fproducts\u002Felasticsearch) Ruby client. The [`elasticsearch`](https:\u002F\u002Fgithub.com\u002Felasticsearch\u002Felasticsearch-ruby\u002Ftree\u002Fmain\u002Felasticsearch) gem is a complete Elasticsearch client which uses two separate libraries:\n\n* [`elastic-transport`](https:\u002F\u002Fgithub.com\u002Felastic\u002Felastic-transport-ruby) - provides the low-level code for connecting to an Elasticsearch cluster.\n* [`elasticsearch-api`](https:\u002F\u002Fgithub.com\u002Felasticsearch\u002Felasticsearch-ruby\u002Ftree\u002Fmain\u002Felasticsearch-api) - provides a Ruby API for the Elasticsearch RESTful API.\n\n## Documentation\n\nPlease refer to \n[the full documentation on elastic.co](https:\u002F\u002Fwww.elastic.co\u002Fdocs\u002Freference\u002Felasticsearch\u002Fclients\u002Fruby) \nfor comprehensive information.\n\nBoth `elastic-transport` and `elasticsearch-api` are documented. You can check \nthe [`elastic-transport`](https:\u002F\u002Frubydoc.info\u002Fgithub\u002Felastic\u002Felastic-transport-ruby\u002F) \nand the [`elasticsearch-api`](http:\u002F\u002Frubydoc.info\u002Fgems\u002Felasticsearch-api) \ndocumentation at RubyDocs.\n\n## Installation\n\n```ruby\ngem install elasticsearch\n```\n\nRefer to the [Installation section](https:\u002F\u002Fwww.elastic.co\u002Fguide\u002Fen\u002Felasticsearch\u002Fclient\u002Fruby-api\u002Fcurrent\u002Fgetting-started-ruby.html#_installation)\nof the getting started documentation.\n\n## Connecting\n\nRefer to the [Connecting section](https:\u002F\u002Fwww.elastic.co\u002Fguide\u002Fen\u002Felasticsearch\u002Fclient\u002Fruby-api\u002Fcurrent\u002Fgetting-started-ruby.html#_connecting)\nof the getting started documentation.\n\n## Usage\n\n```ruby\nrequire 'elasticsearch'\nclient = Elasticsearch::Client.new(host: 'https:\u002F\u002Fmy-elasticsearch-host.example')\nclient.ping\nclient.search(q: 'test')\n```\n\n* [Creating an index](https:\u002F\u002Fwww.elastic.co\u002Fguide\u002Fen\u002Felasticsearch\u002Fclient\u002Fruby-api\u002Fcurrent\u002Fgetting-started-ruby.html#_creating_an_index)\n* [Indexing a document](https:\u002F\u002Fwww.elastic.co\u002Fguide\u002Fen\u002Felasticsearch\u002Fclient\u002Fruby-api\u002Fcurrent\u002Fgetting-started-ruby.html#_indexing_documents)\n* [Getting documents](https:\u002F\u002Fwww.elastic.co\u002Fguide\u002Fen\u002Felasticsearch\u002Fclient\u002Fruby-api\u002Fcurrent\u002Fgetting-started-ruby.html#_getting_documents)\n* [Searching documents](https:\u002F\u002Fwww.elastic.co\u002Fguide\u002Fen\u002Felasticsearch\u002Fclient\u002Fruby-api\u002Fcurrent\u002Fgetting-started-ruby.html#_searching_documents)\n* [Updating documents](https:\u002F\u002Fwww.elastic.co\u002Fguide\u002Fen\u002Felasticsearch\u002Fclient\u002Fruby-api\u002Fcurrent\u002Fgetting-started-ruby.html#_updating_documents)\n* [Deleting documents](https:\u002F\u002Fwww.elastic.co\u002Fguide\u002Fen\u002Felasticsearch\u002Fclient\u002Fruby-api\u002Fcurrent\u002Fgetting-started-ruby.html#_deleting_documents)\n* [Deleting an index](https:\u002F\u002Fwww.elastic.co\u002Fguide\u002Fen\u002Felasticsearch\u002Fclient\u002Fruby-api\u002Fcurrent\u002Fgetting-started-ruby.html#_deleting_an_index)\n\nRefer to [the official documentation](https:\u002F\u002Fwww.elastic.co\u002Fguide\u002Fen\u002Felasticsearch\u002Fclient\u002Fruby-api\u002Fcurrent\u002Fexamples.html)\nfor examples of how to use the most frequently called APIs and \n[`doc\u002Fexamples`](https:\u002F\u002Fgithub.com\u002Felastic\u002Felasticsearch-ruby\u002Fblob\u002Fmain\u002Fdocs\u002Fexamples\u002F) \nfor some practical examples.\n\n**For optimal performance, you should use a HTTP library which supports persistent (\"keep-alive\") connections, e.g. [Patron](https:\u002F\u002Fgithub.com\u002Ftoland\u002Fpatron) or [Typhoeus](https:\u002F\u002Fgithub.com\u002Ftyphoeus\u002Ftyphoeus).** These libraries are not dependencies of the Elasticsearch gems. Ensure you define a dependency for a HTTP library in your own application.\n\nCheck out these other official Ruby libraries for working with Elasticsearch:\n\n* [`elasticsearch-rails`](https:\u002F\u002Fgithub.com\u002Felasticsearch\u002Felasticsearch-rails) - integration with Ruby models and Rails applications.\n* [`elasticsearch-extensions`](https:\u002F\u002Fgithub.com\u002Felastic\u002Felasticsearch-ruby\u002Ftree\u002F7.17\u002Felasticsearch-extensions), *deprecated*.\n* [`elasticsearch-dsl`](https:\u002F\u002Fgithub.com\u002Felastic\u002Felasticsearch-dsl-ruby) which provides a Ruby API for the [Elasticsearch Query DSL](https:\u002F\u002Fwww.elastic.co\u002Fguide\u002Fen\u002Felasticsearch\u002Freference\u002Fcurrent\u002Fquery-dsl.html).\n\nPlease see their respective READMEs for information and documentation.\n\n## Compatibility\n\nWe follow Ruby’s own maintenance policy and officially support all currently maintained versions per [Ruby Maintenance Branches](https:\u002F\u002Fwww.ruby-lang.org\u002Fen\u002Fdownloads\u002Fbranches\u002F).\n\nLanguage clients are forward compatible; meaning that clients support communicating with greater or equal minor versions of Elasticsearch without breaking.\nIt does not mean that the client automatically supports new features of newer Elasticsearch versions; it is only possible after a release of a new client version.\nFor example, a 8.12 client version won't automatically support the new features of the 8.13 version of Elasticsearch, the 8.13 client version is required for that.\nElasticsearch language clients are only backwards compatible with default distributions and without guarantees made.\n\n| Gem Version |   | Elasticsearch  Version | Supported |\n|-------------|---|------------------------|-----------|\n| 8.x         | → | 8.x                    | 8.x       |\n| 9.x         | → | 9.x                    | 9.x       |\n| main        | → | main                   |           |\n\n## Try Elasticsearch and Kibana locally\n\nIf you want to try Elasticsearch and Kibana locally, you can run the following command:\n\n```bash\ncurl -fsSL https:\u002F\u002Felastic.co\u002Fstart-local | sh\n```\n\nThis will run Elasticsearch at http:\u002F\u002Flocalhost:9200 and Kibana at http:\u002F\u002Flocalhost:5601 using Docker.\n\nMore information is available [here](https:\u002F\u002Fwww.elastic.co\u002Fguide\u002Fen\u002Felasticsearch\u002Freference\u002Fcurrent\u002Frun-elasticsearch-locally.html).\n\n## Development\n\nSee [CONTRIBUTING](https:\u002F\u002Fgithub.com\u002Felastic\u002Felasticsearch-ruby\u002Fblob\u002Fmain\u002FCONTRIBUTING.md).\n\n## License\n\nThis software is licensed under the [Apache 2 license](.\u002FLICENSE). See [NOTICE](.\u002FNOTICE).\n","elastic\u002Felasticsearch-ruby 是一个为 Elasticsearch 提供 Ruby 语言集成的官方客户端。它主要由两个库组成：`elastic-transport` 负责与 Elasticsearch 集群建立低级别的连接，而 `elasticsearch-api` 则提供了对 Elasticsearch RESTful API 的 Ruby 接口封装。通过这个项目，开发者可以轻松地在 Ruby 应用程序中实现数据索引、搜索等功能，并且支持多种复杂的查询操作。此工具适用于需要高效全文检索能力的各种应用场景，如日志分析、网站搜索等。",2,"2026-06-11 03:15:58","top_language"]