Well, you could run all queries yourself through Riddle.escape:
User.search(Riddle.escape('google/yahoo'), :match_mode => :extended)
The reason I don't auto-escape queries is because sometimes people may
construct extended queries where they want certain characters unescaped (for
example, @'s for field directives).
Cheers
--
Pat
On 02/06/2011, at 8:49 AM, Mrudhukar wrote:
> When I run User.search("google/yahoo", {:match_mode => :extended}) in
> rails console, I get the above error and this happens only when match
> mode is set to extended.
> I believe that all the queries should go through the Riddle.escape
> block. The following is the sphinx output
>
> Sphinx Querying: 'google/yahoo'
> Sphinx (0.002386s) Found results
> Sphinx Sphinx Daemon returned error: index user_core,user_delta:
> syntax error, unexpected '/', expecting $end near '/yahoo'
>
> I am using Sphinx 0.9.9-release (r2117), Thinking Sphinx plugin 1.4.5
> (latest from the git repo) and Rails 2.3.5
>
> Any help?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Thinking Sphinx" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/thinking-sphinx?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/thinking-sphinx?hl=en.