collective.portlet.similarcontent 1.5

A Plone portlet that uses the catalog internals to find 'similar' content to the page you are looking at
collective.portlet.similarcontent is a Plone portlet that uses some deep dark data structures within the ZCatalog and ZCTextindex, so it could be brittle in the future if those structures are changed. Then again, they have been the same for the past 8 years or so.

This portlet also runs in linear time relative to the number for documents you have in your site, so it could well slow things down. That said I've tried to make it pretty efficient.

How it Works

In a nutshell, this portlet compares the text content of an object with all other objects on the site to find other objects with a similar content. The steps are as follows:

- Find the path of this document
- Look up the record_id (docid) of this path in the catalog
- Look in the SearchableText index to find all word ids (wids) in this document
- Work out the top 20 most 'important' words in this document [*]
- For each of the top 20 words, find all documents containing any of those words
- Use a vector space model to measure similarity of each candidate document to our top 20 words
- Return the top 10 most similar documents.

[*] We work out the top 20 words using a TF*IDF algorithm (the same used in ZCTextIndex.OkapiIndex) to find the words that appear proportionately high in this document compared to all documents in general.

last updated on:
December 13th, 2011, 12:31 GMT
price:
FREE!
developed by:
Matt Hamilton
homepage:
plone.org
license type:
ZPL (Zope Public License) 
category:
ROOT \ Internet \ Plone Extensions

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

What's New in This Release:
  • Fixed portlet edit permission used [vangheem]
read full changelog

Add your review!

SUBMIT