Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding The Nearest Text Match

Status
Not open for further replies.

Noonoo

Technical User
Jul 16, 2002
35
GB
I have an table of terms and would like to find the the nearest match to searched terms. For example, if the search term is 'Holand' the query returns 'Holland' as the nearest matching term in the table. The idea being to allow for mistypes, mispellings and plurals.

I can think of one way of doing this: Searching for the full term and if there is'nt a match, removing the last character and searching again and so on until there us a match.

Does anyone know if this is the best method. It seems a bit longwinded. If it is the best way does have anyone have an example of the code.

Thanks in advance for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top