parisholley / wordpress-fantastic-elasticsearch

Improve wordpress search performance/accuracy and enable faceted search by leveraging an ElasticSearch server.
MIT License
162 stars 64 forks source link

Add related post feature #82

Open schorsch opened 10 years ago

schorsch commented 10 years ago

ES sports a more-like-this feature, where one can pass a document and elasticsearch returns other docs alike.

I started to implement the basics here: https://github.com/schorsch/wordpress-fantastic-elasticsearch/tree/related_posts

gibrown commented 10 years ago

Quick feedback. Here's the basic query we are building for WP.com/Jetpack Related Posts: https://gist.github.com/gibrown/9419022

For why we are not using the MLT API see Slide 33 of this presentation: http://gibrown.wordpress.com/2014/02/25/presentation-elasticsearch-at-automattic/

We started playing with things like overlap in commenters (and likers), links, and shortcodes to improve relevancy. I'd be super interested in other ideas for improving relevancy. :)

schorsch commented 10 years ago

Thanks for the input and your interesting slides! We weren't able to merge my branch yet, since its still lacking tests. But i am using it live on http://buchgourmet.com

Rockstar04 commented 10 years ago

Hey @schorsch, Could you submit a PR with you changes? Even if its currently lacking some tests it would still help get more people looking at the code, and if you dont have time, someone else could step in to help get the code covered.

This seems like a cool feature to have if a new version is released.