A
A
Antago2013-08-11 23:02:59
MySQL
Antago, 2013-08-11 23:02:59

Searching blog posts with similar tags in Yii?

There is a blog on Yii. Each post has a set of tags and keywords. Stored as tag1, tag2, tag3,… Some tags are found in different word forms, i.e. in different cases, numbers.
How to competently and with the least load for a particular post find similar posts based on the match of the largest number of tags? Preferably, with the ability to set a minimum% of matches.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
N
Nikita Gusakov, 2013-08-11
@hell0w0rd

I would create a copy of the database with changes and translate the tags into a normal many-to-many, and dance from here

T
Timur, 2013-09-03
@XAKEPEHOK

It is unlikely that the question is still relevant, but look at github.com/yiiext/taggable-behavior

T
truekenny, 2013-08-11
@truekenny

Try FULLTEXT index.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question