Click here to Skip to main content
15,895,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need a search function that can search in any varchar fields from the database(SQL) and return that into the front end program. The search should be like google search that returns anything similar to the search keyword. Can anybody help me??
Posted
Comments
Pheonyx 2-Jul-13 4:40am    
Do you have anything you have tried? a starting point?
Badri Guragain 2-Jul-13 4:48am    
I have not done anything on that
Pheonyx 2-Jul-13 4:54am    
So you want a method that can search for any varchar field that exists in a database, then search the contents of those fields for things similar to the search criteria? Then return what? the table name and column name? or the value stored in the cell?
Badri Guragain 2-Jul-13 5:11am    
That should return table names,fields and related data from the database..

1 solution

That is really ambitious, Google search algorithm shouldn't be that easy to implement.
I would start from this Wikipedia page: Approximate string matching[^].
 
Share this answer
 
Comments
Badri Guragain 2-Jul-13 6:49am    
I do not need that much complexity in my search..I just need the function to return data from the database tables (multiple) similar to the search keyword.

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