Prefer more unique similarities
| Project: | Similar By Terms |
| Version: | 6.x-1.9 |
| Component: | Miscellaneous |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
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.
| Attachment | Size |
|---|---|
| prefer_unique_terms.patch | 1.07 KB |

#1
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
Added to my 6 Branch.
Needs ported to 5.
Thanks
Robert
#3
Committed to Drupal 5 Branch. Will be in the next version.
Thanks
Robert
#4
Automatically closed -- issue fixed for 2 weeks with no activity.