Prefer more unique similarities

dingbats - January 7, 2009 - 12:24
Project:Similar By Terms
Version:6.x-1.9
Component:Miscellaneous
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

I'm wondering if anyone else is thinking the same:

Please consider a blog with many entries. Ten posts are tagged 'programming'. Of these ten posts, the earliest created and the latest created are also tagged 'drupal'.

To list them:

[9 Latest created] programming, drupal
[1..8] programming
[0 Earliest created] programming, drupal

If we view node 9, by default the Similar Terms block would list nodes 4..8 leaving out the only other node tagged with 'drupal'.

I would expect it to list node 0, does anybody else?

We can make the similar terms block prefer uniqueness among nodes with similar terms by reversing the ncount order. See the attached patch. I'm not sure of the bigger implications of reversing the sort order.

This issue may be related to #305414. Only, I'm not doing anything with hierarchical terms.

AttachmentSize
prefer_unique_terms.patch1.07 KB

#1

rmiddle - January 7, 2009 - 15:14
Status:postponed (maintainer needs more info)» needs review

Ok I see your point. I will test the patch and see how it works. I am attempting to get done a few other changes right now including incorpating a caching system that actually works to reduce system load. I will put this in the queue.

Thanks
Robert

#2

rmiddle - January 26, 2009 - 00:27
Status:needs review» patch (to be ported)

Added to my 6 Branch.

Needs ported to 5.

Thanks
Robert

#3

rmiddle - January 26, 2009 - 03:15
Status:patch (to be ported)» fixed

Committed to Drupal 5 Branch. Will be in the next version.

Thanks
Robert

#4

System Message - February 9, 2009 - 03:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.