Quote:
Originally Posted by dbrooke
One of our customers has several products with 'rasp' in the title. The problem is xcart is bringing search results back with 'grasping' in the product title. The problem is 'grasping' is sometimes placed above 'rasp' in the results returned. Will this mod fix this?
|
Yes.
The default X-Cart search uses pattern matching and doesn't look at words. Basically if the combination of the letters 'rasp' is found anywhere it is a match (even if it is the middle of a word). The standard X-Cart search doesn't search by relevancy either, so the closest match is not at the top of the results.
The Smart Search uses a natural language search, sorting by relevance, and will NOT return 'grasping' if 'rasp' is search for. (Unless there are no matches for rasp, then a partial word match is used as a last resort).
Also, the products with the word 'rasp' in the title will be at the top of the results, followed by the products that include 'rasp' In the description and sorted by frequency (A product that has the word 'rasp' 5 times will be above a product that has the word 3 times.)