That’s the right idea - though I’d switch to ThinkingSphinx::Query.escape 
(Riddle.escape is slightly different, for the old binary protocol instead of 
SphinxQL):

  ThinkingSphinx.search %Q{“#{ThinkingSphinx::Query.escape params[:q].to_s}”}

— 
Pat

> On 20 Jan 2015, at 2:30 am, Walter Lee Davis <[email protected]> wrote:
> 
> So would that look like this:
> 
>       ThinkingSphinx.search '"' + Riddle.escape(params[:q].to_s) + '"'
> 
> as a rough approximation of what you mean?
> 
> Walter
> 
> 
> On Jan 19, 2015, at 4:16 AM, Pat Allan <[email protected]> wrote:
> 
>> I’d recommend wrapping your search queries in double-quotes to get the same 
>> behaviour. Perhaps this will help with the excerpt results as well?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/thinking-sphinx.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.

Reply via email to