Hi Elioncho It sounds like you want to match ANY of the words, instead of ALL the words. Sphinx (and Thinking Sphinx) default to ALL - but you can choose other match modes if you'd like, including ANY:
Model.search "stores markets finance", :match_mode => :any The docs have a bit more information on this: http://freelancing-god.github.com/ts/en/searching.html#matchmodes Cheers -- Pat On 02/03/2010, at 1:55 PM, elioncho wrote: > Hi guys, > > When I query for 'stores, markets, finance' and I have on my indexes > columns two rows of data with: > > - stores > - shirts, pants, lotions, stores > > (see 'stores' is in both) > > I expect to get these two rows of data as results, but I don't get > anything. The only way to get this two rows of data is by only > querying for 'stores'. Now I wonder, how can I configure thinking > sphinx to fetch for me these two rows of data? > > Thank you, > > Elioncho > > -- > 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.
