Questions about the new Elasticserch ruby client


(arozar) #1

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.
For more options, visit https://groups.google.com/groups/opt_out.


(Ivan Brusic) #2

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 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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #3