Reputation: 329
I want to prevent users sending similar posts in my web application.
I use similar_text function in php on my every and each row of (posts) table to calculate the similarity between two strings.
according to this fact that I can not use MATCH and Fulltext index in my DB, what is the best fast alternate for me?
Upvotes: 0
Views: 55
Reputation: 1717
There are many methods and algorithms used to find and prevent similar texts.
Check with the "adaptive local alignment of keywords" concepts.
This link might be helpful to you,
Cosine similarity vs Hamming distance
Upvotes: 1