Hello, (sorry about my english, I am german)
I am modyfied an Starter-Kit from asp.net, called Commerce Starter Kit and everything is fine except the search-function. The problem is, that the search works only with as an "exact" match. Not exact at all. When I am typing in "battery" then I get all words which contains "battery" or they are "battery". If I am typing in "battery charger" I get nothing, because there is not sentence where "charger" follows DIRECTLY "battery". It is more like "The battery from the .... and the charger ..." In that case I am getting no results. How can I solve that problem?
The code is like that:
Does anyone know what to do ...?
Thanks for helping,
Stephan
P.S.: There is a Online-Documentation. But I didn't find that much about search-functions:
I am modyfied an Starter-Kit from asp.net, called Commerce Starter Kit and everything is fine except the search-function. The problem is, that the search works only with as an "exact" match. Not exact at all. When I am typing in "battery" then I get all words which contains "battery" or they are "battery". If I am typing in "battery charger" I get nothing, because there is not sentence where "charger" follows DIRECTLY "battery". It is more like "The battery from the .... and the charger ..." In that case I am getting no results. How can I solve that problem?
The code is like that:
Code:
ALTER Procedure CMRC_ProductSearch
(
@Search nvarchar(255)
)
AS
SELECT ProductID, ModelName, ModelNumber, UnitCost, Beschreibung, ProductImage, Volt
FROM CMRC_Products
WHERE
Beschreibung LIKE '%' + @Search + '%'
OR
ProductImage LIKE '%' + @Search + '%'
Thanks for helping,
Stephan
P.S.: There is a Online-Documentation. But I didn't find that much about search-functions: