LemmyNet / lemmy-ui

The official web app for lemmy.
https://join-lemmy.org/
GNU Affero General Public License v3.0
893 stars 334 forks source link

Linking related posts #874

Open ghost opened 1 year ago

ghost commented 1 year ago

It would be nice to see related posts on the sidebar the same way as you can see related questions on StackOverflow. This would make it simpler to find similar content instead of using the search. It would be useful for finding a topic narrower than what would require a community. For example in the science community someone likes a post about microplastics and wants to see more and instead of searching it, he can see the most related posts from the sidebar.

The linked posts would allow voting on them and ordering by which one is the most relevant. If they had a total negative vote they could be hidden or deleted.

dessalines commented 1 year ago

Those work because of the english language tokenizers / search indexes some search services use. Although postgres does support that for english afaik, it would require significant back-end and DB changes, and wouldn't work for other languages.

The only other way we could do a related posts, is if we do some wildcard searches with the link domain, but that could be wildly wrong ( ie any given two posts from the same news site, or wikipedia, aren't going to be related).

ghost commented 1 year ago

Also, automatically add posts linked in the body and comments to the related posts. In fact, in the beginning, it could be just that; that way, it's simpler.