Support » Plugin: Contextual Related Posts » Some algoritmhic improvements

  • Hello,

    First, thank you for having developped this fine plugin.

    I don’t know what exactly is your algorithm to find related posts, I haven’t read the code. I understand also that there are inherent limitations – complexity, resource usage and unability to semantically understand which words are more important.

    However, it looks like there is a simple “count” of words and that there is really room for improvement without adding too much on complexity.

    I have on my website some posts with 5000 to 10000 words, though most have les than 1000. I had to disable checking in the content, because only a handful of posts were suggested – which all had in common their great length.

    Idea here : check more the weight of the words.

    Although checking only percentage would likely have the opposite effect – there is a balance to find. There could probably be an option to control it besides a default.

    Another idea on the top of my idea : compare the tags/categories. I’ve no idea of what it would take in code, but if it’s possible, it shouldn’t be expensive in CPU and could greatly improve this plugin.

    I’ve posts on some topics which have widely differing titles but are related to each other, and that’s very clear once you look in the tags/categories.

    There could be also options to control the relative importance of title/content/tags/categories.

    That should probably be enough to vastly improve the quality of the algorithm, and really make it top-notch.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ajay

    (@ajay)

    Hi, thanks for your comments.

    The plugin uses mySQL’s inbuilt FULLTEXT search which as you noted above does have it’s limitation.

    Right now the title and content have similar weighting which creates a bit of the issue. An alternative is separate weights for those but that will find it’s way in an addon eventually.

    You can use this addon to limit to same tags and categories. If you’ve got a sufficiently large blog it can massively improve the matching.

    https://wordpress.org/plugins/crp-taxonomy/

    Hi,

    I would like to propose using WP FullText Search plugin which actually uses its own indexing system over MySQL text data and you can put almost any post parts (title, content, metadata, tags, categories, calculated data, parsed data etc) to index as well as apply different weights to these parts.

    https://wordpress.org/plugins/fulltext-search/

    • This reply was modified 4 years, 4 months ago by Epsiloncool.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Some algoritmhic improvements’ is closed to new replies.