New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Related posts as JSON #1702

Closed
da2x opened this Issue May 8, 2015 · 6 comments

Comments

Projects
None yet
2 participants
@da2x
Contributor

da2x commented May 8, 2015

/posts/post-slug.html should optionally have an accompanying /posts/post-slug.json (link and title only?) that contains related posts.

Simple logic for “related”:

  • other posts with similar tags
  • other posts with similar title keywords
  • other posts with similar body keywords

Need to assign scores to each of these signals.

Ideally, only the JSON should need to be rebuilt and not the page. Plug-in material, maybe?

@da2x da2x added the idea label May 8, 2015

@ralsina ralsina modified the milestone: v8.0.0 May 12, 2015

@ralsina ralsina modified the milestones: v8.0.0, 7.5.0 May 20, 2015

@ralsina ralsina modified the milestones: 7.5.0, 7.6.0, Whenever Jun 8, 2015

@ralsina

This comment has been minimized.

Show comment
Hide comment
@ralsina

ralsina Jul 29, 2015

Member

Tool that could make this feasible: https://github.com/piskvorky/gensim

Nah, too fancy. YAARP, which seems to work "well enough" does a much much dumber thing, to wit: http://www.slideshare.net/mitcho/the-yet-another-related-posts-plugin-algorithm-explained

This shows how to use sqlite's FTS and rank: http://chipaca.com/post/16877190061/doing-full-text-search-in-sqlite-from-python

With that and a little ingenuity I should have something working in a few days.

Or maybe just use whoosh with the same principle.

Member

ralsina commented Jul 29, 2015

Tool that could make this feasible: https://github.com/piskvorky/gensim

Nah, too fancy. YAARP, which seems to work "well enough" does a much much dumber thing, to wit: http://www.slideshare.net/mitcho/the-yet-another-related-posts-plugin-algorithm-explained

This shows how to use sqlite's FTS and rank: http://chipaca.com/post/16877190061/doing-full-text-search-in-sqlite-from-python

With that and a little ingenuity I should have something working in a few days.

Or maybe just use whoosh with the same principle.

@ralsina ralsina added the in progress label Jul 30, 2015

@ralsina ralsina self-assigned this Jul 30, 2015

@da2x

This comment has been minimized.

Show comment
Hide comment
@da2x

da2x Jul 30, 2015

Contributor

We should keep this in sync with the format used in the recent post JSON plug-in.
https://github.com/getnikola/plugins/tree/master/v7/recent_posts_json

Contributor

da2x commented Jul 30, 2015

We should keep this in sync with the format used in the recent post JSON plug-in.
https://github.com/getnikola/plugins/tree/master/v7/recent_posts_json

@da2x

This comment has been minimized.

Show comment
Hide comment
@da2x

da2x Sep 2, 2015

Contributor

I expanded the https://github.com/getnikola/plugins/tree/master/v7/recent_posts_json plugin to create individual JSON files for each section. For sectioned sites, this will at least improve relevance.

Contributor

da2x commented Sep 2, 2015

I expanded the https://github.com/getnikola/plugins/tree/master/v7/recent_posts_json plugin to create individual JSON files for each section. For sectioned sites, this will at least improve relevance.

@da2x

This comment has been minimized.

Show comment
Hide comment
@da2x

da2x Jan 4, 2016

Contributor

@ralsina, any progress? I’m considering moving to WordPress and this feature right here is at the top of the list of reasons to go with WordPress.

Contributor

da2x commented Jan 4, 2016

@ralsina, any progress? I’m considering moving to WordPress and this feature right here is at the top of the list of reasons to go with WordPress.

@ralsina

This comment has been minimized.

Show comment
Hide comment
@ralsina

ralsina May 22, 2017

Member

Amazing what things I have marked as in progress through the years.

Member

ralsina commented May 22, 2017

Amazing what things I have marked as in progress through the years.

@ralsina

This comment has been minimized.

Show comment
Hide comment
@ralsina

ralsina May 24, 2017

Member

Done as a plugin.

Member

ralsina commented May 24, 2017

Done as a plugin.

@ralsina ralsina closed this May 24, 2017

@ralsina ralsina removed the in progress label May 24, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment