# Questions about the new Elasticserch ruby client

**URL:** <https://discuss.elastic.co/t/questions-about-the-new-elasticserch-ruby-client/14090>\
**Category:** Elasticsearch\
**Created:** [October 24, 2013, 10:27am UTC](https://discuss.elastic.co/t/questions-about-the-new-elasticserch-ruby-client/14090 "2013-10-24T10:27:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arozar](https://avatars.discourse-cdn.com/v4/letter/a/2bfe46/32.png) [@arozar](https://discuss.elastic.co/u/arozar)\
**Post date:** [October 24, 2013, 10:27am UTC](https://discuss.elastic.co/t/questions-about-the-new-elasticserch-ruby-client/14090/1 "2013-10-24T10:27:01Z")

</div>

I'm using the new ruby client and I'm learning ruby on rails at the same  
time, may be a bad move but I made it.

I've got my app up, and can search using the new client, and it works well.  
I'm trying to append "&pretty=true" but it keeps changing the string to  
"%26pretty%3Dtrue". Is there a better way to accomplish this?

\<%= @esearch.search q:params[:query] \>\> + '&pretty=true' do %\>  
\<% end %\>

I've also tried using .html\_safe, and raw() with no luck. I this maybe  
where I would need to use rails/jbuilder?

--  
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:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [October 24, 2013, 3:34pm UTC](https://discuss.elastic.co/t/questions-about-the-new-elasticserch-ruby-client/14090/2 "2013-10-24T15:34:33Z")

</div>

From my understanding as a non-Ruby developer, the Tire Ruby client might  
have better integration with Rails. You might want to look into that  
client instead.

--  
Ivan

On Thu, Oct 24, 2013 at 3:27 AM, [arozar@insecure-it.com](mailto:arozar@insecure-it.com) wrote:

> I'm using the new ruby client and I'm learning ruby on rails at the same  
> time, may be a bad move but I made it.
> 
> I've got my app up, and can search using the new client, and it works  
> well. I'm trying to append "&pretty=true" but it keeps changing the string  
> to "%26pretty%3Dtrue". Is there a better way to accomplish this?
> 
> \<%= @esearch.search q:params[:query] \>\> + '&pretty=true' do %\>  
> \<% end %\>
> 
> I've also tried using .html\_safe, and raw() with no luck. I this maybe  
> where I would need to use rails/jbuilder?
> 
> --  
> 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).

--  
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:** ![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:10am UTC](https://discuss.elastic.co/t/questions-about-the-new-elasticserch-ruby-client/14090/3 "2017-07-06T02:10:45Z")

</div>

Closed on July 6, 2017, 2:10am UTC


