# Elastic Search Ruby Client Documention

**URL:** <https://discuss.elastic.co/t/elastic-search-ruby-client-documention/14399>\
**Category:** Elasticsearch\
**Created:** [November 14, 2013, 8:22am UTC](https://discuss.elastic.co/t/elastic-search-ruby-client-documention/14399 "2013-11-14T08:22:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karan\_Verma](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@Karan\_Verma](https://discuss.elastic.co/u/Karan_Verma)\
**Post date:** [November 14, 2013, 8:22am UTC](https://discuss.elastic.co/t/elastic-search-ruby-client-documention/14399/1 "2013-11-14T08:22:22Z")

</div>

Hello

I have some difficulty getting started with the Elastic Search Ruby client.  
Could you someone please point me to documentation or example  
implementations. I am having difficulty from moving from Tire to ES ruby  
client.

Does the ES ruby client have similar callbacks and that tire provides. Also  
where can I learn the syntax of mappings like I use in Tire.

One of the problems I have with Tire is that it tries to connect to the ES  
cluster each time I start the console, which slows the application down and  
also cause connection issues if the some people in my group don't have  
access to the ES cluster from various networks they use.

Does ES ruby client also try and connect to the cluster each time the  
application starts?

If yes, is there a way to avoid that?

Also, in any case, is there a way to avoid Tire from connecting to the  
cluster each time on startup.

Thanks.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Richard\_Pijnenburg](https://avatars.discourse-cdn.com/v4/letter/r/aeb1de/32.png) [@Richard\_Pijnenburg](https://discuss.elastic.co/u/Richard_Pijnenburg)\
**Post date:** [November 14, 2013, 2:39pm UTC](https://discuss.elastic.co/t/elastic-search-ruby-client-documention/14399/2 "2013-11-14T14:39:22Z")

</div>

Hi Karan,

Regarding the Ruby client; did you see the docs in the github repo?

> **[GitHub - elastic/elasticsearch-ruby: Ruby integrations for Elasticsearch](https://github.com/elastic/elasticsearch-ruby)**
>
> Ruby integrations for Elasticsearch. Contribute to elastic/elasticsearch-ruby development by creating an account on GitHub.

On Thursday, November 14, 2013 8:22:22 AM UTC, Karan Verma wrote:

> Hello
> 
> I have some difficulty getting started with the Elastic Search Ruby  
> client. Could you someone please point me to documentation or example  
> implementations. I am having difficulty from moving from Tire to ES ruby  
> client.
> 
> Does the ES ruby client have similar callbacks and that tire provides.  
> Also where can I learn the syntax of mappings like I use in Tire.
> 
> One of the problems I have with Tire is that it tries to connect to the ES  
> cluster each time I start the console, which slows the application down and  
> also cause connection issues if the some people in my group don't have  
> access to the ES cluster from various networks they use.
> 
> Does ES ruby client also try and connect to the cluster each time the  
> application starts?
> 
> If yes, is there a way to avoid that?
> 
> Also, in any case, is there a way to avoid Tire from connecting to the  
> cluster each time on startup.
> 
> Thanks.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![karmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karmi/32/44951_2.png) [@karmi](https://discuss.elastic.co/u/karmi)\
**Post date:** [November 28, 2013, 6:49am UTC](https://discuss.elastic.co/t/elastic-search-ruby-client-documention/14399/3 "2013-11-28T06:49:15Z")

</div>

Hi,

I have some difficulty getting started with the Elastic Search Ruby client.

> Could you someone please point me to documentation or example  
> implementations. I am having difficulty from moving from Tire to ES ruby  
> client.

you cannot, in fact "move" from Tire to the new Elasticsearch Ruby client  
([GitHub - elastic/elasticsearch-ruby: Ruby integrations for Elasticsearch](https://github.com/elasticsearch/elasticsearch-ruby)). Tire and the client  
have quite different scopes and focus: the new client is focused on the low  
layers such as transport, API calls, etc.

There will be a suite of gems offering similar features of Tire soon,  
namely the ActiveRecord/Model and Rails integration, automatic callbacks,  
importing routines, etc.

> One of the problems I have with Tire is that it tries to connect to the ES  
> cluster each time I start the console, which slows the application down and  
> also cause connection issues if the some people in my group don't have  
> access to the ES cluster from various networks they use.

Could you describe this issue in more detail, preferably at Github issues  
for Tire? Tire indeed tries to connect to the cluster (to check whether it  
should create an index for your model, etc), but this shouldn't result in  
any "connection issues" or other errors.

> Also, in any case, is there a way to avoid Tire from connecting to the  
> cluster each time on startup.

Again, unless you've discovered a bug this shouldn't be an issue.

Karel

--  
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/6f293fc7-9bcd-4de9-9596-d7d81ee14fae%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6f293fc7-9bcd-4de9-9596-d7d81ee14fae%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Karan\_Verma](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@Karan\_Verma](https://discuss.elastic.co/u/Karan_Verma)\
**Post date:** [December 2, 2013, 7:13pm UTC](https://discuss.elastic.co/t/elastic-search-ruby-client-documention/14399/4 "2013-12-02T19:13:59Z")

</div>

Karel

Thanks for your response.

When are the suite of Gems planned to be released? Regarding Tire  
connecting to the cluster, it was not a bug. I want to understand why is it  
necessary to check whether there's an index for the model. Can we avoid  
this check?

On Wed, Nov 27, 2013 at 10:49 PM, Karel Minařík [karel.minarik@gmail.com](mailto:karel.minarik@gmail.com)wrote:

> Hi,
> 
> I have some difficulty getting started with the Elastic Search Ruby
> 
> > client. Could you someone please point me to documentation or example  
> > implementations. I am having difficulty from moving from Tire to ES ruby  
> > client.
> 
> you cannot, in fact "move" from Tire to the new Elasticsearch Ruby client (  
> [GitHub - elastic/elasticsearch-ruby: Ruby integrations for Elasticsearch](https://github.com/elasticsearch/elasticsearch-ruby)). Tire and the client  
> have quite different scopes and focus: the new client is focused on the low  
> layers such as transport, API calls, etc.
> 
> There will be a suite of gems offering similar features of Tire soon,  
> namely the ActiveRecord/Model and Rails integration, automatic callbacks,  
> importing routines, etc.
> 
> > One of the problems I have with Tire is that it tries to connect to the  
> > ES cluster each time I start the console, which slows the application down  
> > and also cause connection issues if the some people in my group don't have  
> > access to the ES cluster from various networks they use.
> 
> Could you describe this issue in more detail, preferably at Github issues  
> for Tire? Tire indeed tries to connect to the cluster (to check whether it  
> should create an index for your model, etc), but this shouldn't result in  
> any "connection issues" or other errors.
> 
> > Also, in any case, is there a way to avoid Tire from connecting to the  
> > cluster each time on startup.
> 
> Again, unless you've discovered a bug this shouldn't be an issue.
> 
> Karel
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/pu3H6YEMXFg/unsubscribe](https://groups.google.com/d/topic/elasticsearch/pu3H6YEMXFg/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/6f293fc7-9bcd-4de9-9596-d7d81ee14fae%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6f293fc7-9bcd-4de9-9596-d7d81ee14fae%40googlegroups.com)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Best,  
Karan

Life saving Ninja & Software Engineer

Karan pronounced Ka ([http://tiny.cc/0lu61w](http://tiny.cc/0lu61w)) + Run

--  
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/CAGX3c4Fy%3Dg828RAvtna0OvqChVYxocJ6ZQhWwCi8pH1B9WPgDg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGX3c4Fy%3Dg828RAvtna0OvqChVYxocJ6ZQhWwCi8pH1B9WPgDg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:03am UTC](https://discuss.elastic.co/t/elastic-search-ruby-client-documention/14399/5 "2017-07-06T02:03:49Z")

</div>


