an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > Exact search Update inorder to get accurate sea...
Last Post 8/23/2010 12:05:15 PM By lukezy. 1 replies.
8/20/2010 2:50:17 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Exact search Update inorder to get accurate search results

Hi Luke,

You need to update DCS_Product_Search in this way so that the result set be exact and related to the search criteria:

replace this line ( the first where cluase of Unions) :
 
WHERE CONTAINS(p.*,' + QUOTENAME('FORMSOF(INFLECTIONAL,' + QUOTENAME(dbo.DSC_Escape(dbo.DSC_Escape(Value, N'\'), N';'), '"') + ')', '''') + ')

with this one :

 WHERE p.productName Like ' + QUOTENAME( '%'+dbo.DSC_Escape(Value, N'\') +'%','''') + '

 
 
This will put the exact result set in the query while keeping all other union queries. if you could make the result ASP in three section in future that will be fine.
 
They are : 1- Exact Prodcuts
                   2- Other Products
                   3 -Pages
 
 
Thanks,
8/23/2010 12:05:15 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Exact search Update inorder to get accurate search results
We want to use SQL fulltext search in the shipping product. You are free to change whatever you think it's right to your business.
DotShoppingCart Staff