elasticsearch-crystal
Version, currently 0.114 versions
- 0.14latestOct 19, 2019
- 0.13not indexedOct 19, 2019
- 0.12not indexedOct 19, 2019
- 0.11not indexedOct 19, 2019
github.com/paktek123/elasticsearch-crystal
Elasticsearch API wrapper for Crystal Lang
36 stars
0 dependents
License: MIT
Nothing has been indexed for 0.11 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
elasticsearch-crystal:
github: paktek123/elasticsearch-crystal
version: ~> 0.11Then run:
shards installshard.yml
No shard.yml has been indexed for 0.11. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.

<a href="https://www.buymeacoffee.com/neeran" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>
# Elasticsearch-crystal
Elasticsearch Library for Crystal Lang. Heavily inspired by Ruby Elasticsearch Library.
## Installation
```
dependencies:
elasticsearch-crystal:
github: paktek123/elasticsearch-crystal
version: ~> 0.14
```
## Usage
```
require "elasticsearch-crystal/elasticsearch/api"
client = Elasticsearch::API::Client.new({:host => "localhost", :port => 9250})
# create an index
client.indices.create({:index => "test_index", :body => {"mappings" => {"type_1" => {} of String => String}}})
client.cat.indices
# For getting back JSON
client.cat.indices({:format => "json"}).as(JSON::Any)
```
For more example see under the `test` folder
## Roadmap
Right now this although covers most of the Elasticsearch API, still lacks certain functionality. The next features will be driven by community demand.
- Make the repo more 'Crystal' Lang style, it follows ruby conventions or no conventions at all right now
- Code is a bit repetitive in places
- Same functionality as the Ruby Elasticsearch Library
## Issues and Bugs
Although there is a test suite of Elasticsearch there are bound to be many bugs. Please raise an issue with steps to reproduce and any stack traces. Contributions are welcome to fix.
## Contribute
Contributions are welcome!
- Run a local Elasticsearch on port 9250: `docker run -d -p 9250:9200 elasticsearch:5.2`
- Run the test suite interested in `crystal spec test/integation/cat/*`
- Fork the repo and work on your feature in a branch
- Make a PR
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.11- Tagged
- Oct 19, 2019
- Commit
ffe87439d3d3- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/paktek123/elasticsearch-crystal
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 12, 2026
- Versions
- 4