hmm...i tried them both, and they didn't give me any rails syntax errors, but now it's not returning any results either, even though the faq contains both words. any ideas? does sphinx itself have a log that would be helpful for me to figure out what it's doing?
On Feb 17, 3:51 am, Pat Allan <[email protected]> wrote: > Hope I'm not being overly prescriptive... > > If you want to match FAQ's with both product or review in the body with the > quorum operator, then I think the following should work: > > Faq.search '@body "product review"/1', > :with => {:client_id => @request.client_id}, > :match_mode => :extended > > Or even: > > Faq.search :conditions => {:body => '"product review"/1'}, > :with => {:client_id => @request.client_id} > > Is this helpful? > > -- > Pat > > On 17/02/2010, at 5:59 PM, rfelix wrote: > > > > > Maybe I'm being a little dense here, but I'm trying to use the quorum > > operator for my searches and I can't seem to figure out the syntax as > > it would be passed from TS. > > > Here's my code: > > �...@faq_matches = Faq.search("@body product | @body review", :with > > => {:client_id => @request.client_id}, :match_mode => :extended) > > > and here's the example from the Sphinx docs: > > quorum matching operator: > > "the world is a wonderful place"/3 > > > from this page:http://www.sphinxsearch.com/docs/current.html#extended-syntax > > > Would someone please help me with the proper TS syntax for this? > > > -- > > 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.
