Thanks a lot Pat, ignore_errors should help.

On Jun 2, 2:30 pm, Pat Allan <[email protected]> wrote:
> At some point in 1.4.x, those errors that Sphinx raises are now passed onto 
> Thinking Sphinx properly (hence why they get raised for you). You can disable 
> this if you like, using `:ignore_errors => true` in each search request.
>
> It's not just the / character - others may raise errors as well.
>
> --
> Pat
>
> On 02/06/2011, at 10:24 AM, Mrudhukar wrote:
>
>
>
>
>
>
>
> > Thank you for very quick response...
>
> > I get it, so we cannot auto escape the queries. Has there been any
> > change in TS from 1.3.17 to 1.4.5? Because things seem to work fine in
> > that version.
>
> > Also I am using search in many places, so it will not be clean to have
> > this in all the places. Does this exception happen only if there is
> > this '/' character?
>
> > Thank you
>
> > On Jun 2, 1:15 pm, Pat Allan <[email protected]> wrote:
> >> 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 
> >>> athttp://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 
> > athttp://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.

Reply via email to