troubleshooting Question

Better search feature

Avatar of RTKHOT
RTKHOTFlag for India asked on
ASP.NETMicrosoft SQL Server 2008
3 Comments1 Solution412 ViewsLast Modified:
I have a search tool in my website that returns all items (database = sql server) that contain the search string.

Presently, if I type 'red shirts' into search, it returns all records that contain this string in the description field of the items

Now, i need to modify it.

If an item description contains "shirt - red", then also the above search string (red shirts) should return such items. In other words, my search result should return all items that contain one or more words that were entered in the search irrespective of their sequence (red shirt or shirt - red)

How should I modify my database query?
ASKER CERTIFIED SOLUTION
Habib Pourfard
Senior Software Engineer
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros