I have a table called 'products' where i have product names like 'Iphone5 with 1GB Data', 'Iphone5 with 10GB Data', etc... and so on...
When user use a search box to search this products i make a query like the following...
select *
from products
where product_name like '%USER_SEARCH_KEY%'
limit 5;
now when i search 'iphone5 with' i get the rows which has 'iphone5 with' word in it. but when i search 'iphone5 1gb' i get no records found... i had to enter 'iphone5 with 1gb' to get that result. Is there any way i get the record on result set when i search for 'iphone5 1gb' keyword also ?
Thanks in advance.