Now that we have tagging for our blog posts, we can do many interesting things with them. Using tags, we can classify our blog posts very well. Posts about similar topics will have several tags in common. We are going to build a functionality to display similar posts by the number of tags they share. In this way, when a user reads a post, we can suggest them to read other related posts.
In order to retrieve similar posts for a specific post, we need to: