Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CSqlite search.
#6
Given this some thought...

How about removing letters one by one
Entry desired to find: "Rock and Roll"
other entries: Blues, Jazz, easy listening, and Country
SearchWord is: Rockx
Rockx returns 0 results
ockx returns 0 results
Rokx returns 0 results
Rocx returns 0 results
Rock returns 1 result

The next step would be if there are 2, 3, or more letters that don't match.
This seems to go on and on...

What about a way to get a percentage match...or something?
like Rock and Roll matches is like a 50% of the letters of SearchWord...which would be the highest match
Blues would be a 0% match
Jazz would be a 0% match
easy listening would be 0% match
Country would be a 28% match

What about some sort of spelling corrector?
Code:
Copy      Help
http://www.norvig.com/spell-correct.html

Thanks again for everything!
Jimmy Vig


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)