Thank you probably going to have to ignore the errors with no search results. Don't want to screw with issues that might come up from escaping other characters. Just one thing, are you saying in previous versions of thinking sphinx these type of errors are just ignored?
On Jun 3, 1:11 am, Pat Allan <[email protected]> wrote: > This is more that you've updated to a recent version of Thinking Sphinx (same > thing happens in recent 1.4.x releases), which passes on Sphinx syntax errors. > > You can either use Riddle.escape to escape special characters such as / - > although that'll also escape |, (, ) and & (among others) as well, so be > careful where you use it - or, pass :ignore_errors => true in the search > call, and you'll just get no search results back. > > Cheers > > -- > Pat > > On 03/06/2011, at 7:12 AM, gerberdata wrote: > > > > > > > > > We are getting this error after deploying our rails 3 upgrade > > > index news_story_core,news_story_delta: syntax error, unexpected '/' > > near '/ Bad Tolz | Skiing | Snowboarding | Snow | Sledding | moguls | > > Snow park | Skiing Alpine | Ski Jumping | Ski Touring | Skiboarding | > > Snowboard) & (Sport_249 | Sport_246 | Sport_247 | Sport_248 | > > Sport_251 | Sport_257 | Sport_254)' > > thinking-sphinx (2.0.3) lib/thinking_sphinx/search.rb:406:in `block > > in populate' > > > Here is the method call > > > news = NewsStory.search "(#{terms.join(") & > > (")})", :per_page=>limit, :page=>1, :match_mode > > => :boolean, :sort_mode => :extended,:order => "publish_date DESC, > > @relevance DESC" > > > -- > > 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.
