Ok, let's suppose we have members
table. There is a field called, let's say, about_member
. There will be a string like this 1-1-2-1-2
for everybody. Let's suppose member_1 has this string 1-1-2-2-1
and he searches who has the similar string or as much similar as possible. For example if member_2 has string 1-1-2-2-1
it will be 100% match, but if member_3 has string like this 2-1-1-2-1
it will be 60% match. And it has to be ordered by match percent. What is the most optimal way to do it with MYSQL and PHP? It's really hard to explain what I mean, but maybe you got it, if not, ask me. Thanks.
Edit: Please give me ideas without Levenshtein method. That answer will get bounty. Thanks. (bounty will be announced when I will be able to do that)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…