# Elastics gem for Ruby

**URL:** <https://discuss.elastic.co/t/elastics-gem-for-ruby/20529>\
**Category:** Elasticsearch\
**Created:** [November 1, 2014, 6:43pm UTC](https://discuss.elastic.co/t/elastics-gem-for-ruby/20529 "2014-11-01T18:43:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max\_Melentiev](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@Max\_Melentiev](https://discuss.elastic.co/u/Max_Melentiev)\
**Post date:** [November 1, 2014, 6:43pm UTC](https://discuss.elastic.co/t/elastics-gem-for-ruby/20529/1 "2014-11-01T18:43:00Z")

</div>

Hi to all!

I was looking for some simple elasticsearch client for ruby with  
ActiveRecord integration.  
All existing gems seemed to me either had too complex code or had lack in  
functionality.

So I've made dead-simple client. It doesn't have any query DSL or any other  
top-level sugar.  
It just performs queries to elasticsearch and have simple AR integration  
that manages index & type names.  
But it allows you to write queries without _translating_ them from ES docs  
to gem`s format.

Even with the all its simplicity Elastics has necessary functions.  
It can manage index settings and type mappings for you with aliases:  
zero-downtime migrations are in the pack.  
You also can choose model-per-index or model-per-type setup, or of course  
set the index/type names manually.  
Gem can be used without Rails, just check the docs for notices.

Code is here: [https://github.com/printercu/elastics-rb](https://github.com/printercu/elastics-rb)

Hope you'll like it,  
Max

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5a86776b-5292-46a2-ae27-b00901993e24%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5a86776b-5292-46a2-ae27-b00901993e24%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:52am UTC](https://discuss.elastic.co/t/elastics-gem-for-ruby/20529/2 "2017-07-06T00:52:39Z")

</div>


