Rajesh: the problem is . isn't considered part of a word, but a word separator (and so Sphinx indexes 2.0 as two words: '2' and '0').
Some ways around this would be to look at the exceptions or wordforms settings - you could add . to be considered an indexable character in all situations using charset_table, but I don't think that's appropriate in this case. http://www.sphinxsearch.com/docs/manual-0.9.8.html#conf-wordforms For wordforms and exceptions, you can reference the text file with your custom phrases from config/sphinx.yml: development: wordforms: path/to/file.txt (repeat for test, production, and any other environments you have) Cheers -- Pat On 27/07/2009, at 2:26 PM, rajesh wrote: > > Hello, > > I am searching for 'web 2.0' , getting correct search result when the > item contains 'web' keyword, but along with that I got the search > result for '2.0' which is wrong result, how can i avoid this. > > here is search term... > > Item.search "web 2.0", :match_mode => :extended,:per_page=>1000 > > thanks! > Rajesh > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
