nrpg666
asked on
Closest match in MySQL by few keywords
I have text field with some keywords in it (with fulltext index) and some rows... I want to ask mysql to give me the best 10 rows containing words closest to some keywords
Example:
Rows: 1: "googlee ggooogle google" 2: "googgle yahhoo msn" 3: "some other keywords"
I ask for best matches with "google yahoo" and mysql should give me only row 2.
Example:
Rows: 1: "googlee ggooogle google" 2: "googgle yahhoo msn" 3: "some other keywords"
I ask for best matches with "google yahoo" and mysql should give me only row 2.
check for sounds like or soundex functions
ASKER
soundex doesn't work with cyrilic
Soundex is also optimized for names and may behave unexpected for general pattern matching.
Sorry, nothing you can do in MySQL.
You need to solve this problem programatically.
Sorry, nothing you can do in MySQL.
You need to solve this problem programatically.
explode() the rows
make an array of search terms
loop through each row for a match
make an array of search terms
loop through each row for a match
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.