Duplicate Results

jrstmartin - February 20, 2007 - 20:58
Project:Similar Entries
Version:4.7.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I'm getting duplicate results from the latest version (4.7.x-1.0, v 1.2.2.10 2007/01/21 19:40:33 deekayen) of similar.module.

The duplicates are blog entries that do not have revisions. I've read the issue about duplicate revisions appearing, but these are just regular blog entries without revisions. I have edited/resubmitted the post a few times, but again, no revisions exist.

I've tried all different kinds of situations and settings that I can think of, but still get duplicate results sometimes.

I've attached screenshots. I'm not a coder so this is about all I can do to help. I hope to resolve this because I really love this module. Thanks in advance :)

AttachmentSize
similar_module_duplicates.jpg122.72 KB

#1

schmkr - April 7, 2007 - 12:28

I am also getting duplicate results in the block and I think this is caused by having multiple terms for one post and the duplicate posts too have multiple terms.

#2

schmkr - April 7, 2007 - 12:35

I think I have a very simple solution to the issue and that is adding 'GROUP BY n.nid' between 'AND n.type IN ($types)' and 'ORDER BY score' on line 233 of similar.module

At least, this works fine for me!

#3

deekayen - April 7, 2007 - 12:59
Status:active» fixed

Added in DRUPAL-4-7--1-2 and DRUPAL-5--1-2.

#4

jrstmartin - April 14, 2007 - 22:07

Thanks schmkr! Works for me too :)

#5

Anonymous - April 28, 2007 - 22:15
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.