Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a basic algorithm for related content queries?

Tags:

algorithm

Let's say I have a DB of questions, like SO! When a user has asks a question, I'd like to provide related questions on the sidebar.

Is there a standardized technique for this? Split question by spaces, search on each word, etc... ??

Not really sure where to begin.

like image 338
Chaddeus Avatar asked May 27 '26 05:05

Chaddeus


1 Answers

This is known as More Like This feature. IR libraries like Lucene support this feature. Read here for more details.

  1. How MoreLikeThis Works in Lucene
  2. Using Lucene and MoreLikeThis to show Related Content
like image 156
Aravind Yarram Avatar answered May 30 '26 04:05

Aravind Yarram