Click here to Skip to main content
16,021,580 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,

I have a Textbox in which i have to type a word(like Red) or multiple words (Mark Red Elk) for searching the property.

Problem is that when i search a single word like-Mark it display the property on the MAP.

But when i type Multiple words like- Mark Red Elk (where Mark is name, Red is color and Elk is manufacturer. It will not showing any result.

Can anybody help me to find out the result for multiple words.

I already used LIKE keyword in the STORED PROCEDURE but it search single word.

Forget the MAP and just help me to find out the result of the textbox value........


Thanks,
S SAXENA
Posted
Updated 18-Aug-11 1:52am
v2

1 solution

The like keyword will do a complete term match, it's not a fuzzy search.

There are likely better ways to tackle this, but here's one.

1) Split the string in the stored proc (function here)[^] and put them in a temp table
2) Create a temp table to hold your final search results
3) Loop through the temp table with the search terms and for each one, add the search results to the final results table
4) Select and return the final results table

Cheers.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900