Hi Paul What you're trying to do (match some but not necessarily all words) is a little tricky, but here's a couple of things to note:
If you want to match on *any* word, rather than all, you can insert |'s between each word (| is Sphinx's OR). There is also the quorum operator, but that may be harder, given you don't have control over how many terms the user may enter. http://sphinxsearch.com/docs/current.html#extended-syntax Either way, you'll be slicing up the user-provided queries, which is slightly annoying, but perhaps worthwhile. Hope this helps. -- Pat On 02/05/2013, at 9:04 AM, Paul Gray wrote: > I have recently started playing around with thinking sphinx and have been > having great success with running searches, however I have noticed that for > some reason, certain searches aren't returning the correct records. > > config/thinking_sphinx.yml > development: > mysql41: 3313 > morphology: stem_en > > > indicies/product_index.rb > indexes :title > > lib/tasks/product_search.rake > term = "Garmin Edge 500 GPS Enabled Computer" > @product = Product.search Riddle::Query.escape(term), ranker: :none > > The rake task should match the title in the database of 'Garmin Edge 500 GPS > Cycle Computer' however for some reason it returns an empty array. When I > remove the term 'Enabled' it returns the record. > > I was just wondering if there is a simple way to improve the accuracy of a > search? > > Thanks > > Paul > > > -- > You received this message because you are subscribed to the Google Groups > "Thinking Sphinx" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
