Thanks a lot for this wonderful module! I'm currently experiencing an issue with the latest release though: The similarity score filter in Views doesn't seem to do anything. I set it to > 1, < 1, > 2 and no filtering is being done based on that. Sorting by similarity score does work, which makes the problem less urgent but if there are only (let's say) 2 articles which are similar to the one currently being viewed then the module still shows the ones which aren't similar at all, just to fill the list with the set number of items.
Also strange: The Similar Entries view shows a working preview when I edit it, which normally shouldn't be the case, as it's based on the node ID being passed through as contextual filter, right?
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | Screen Shot 2013-06-26 at 15.59.37.png | 491.44 KB | groovedork |
| #9 | Screen Shot 2013-06-26 at 16.00.58.png | 370 KB | groovedork |
| #8 | similar-fix-view-score-filter-not-working-1477594-8.patch | 998 bytes | it-cru |
Comments
Comment #1
kardave commentedI can double this.
Thanks,
David
Comment #2
brks commentedI have similar issue. Seems the filter does not work. No matter I choose score>5 or score<5, the result is the same.
Comment #3
kamil0788 commentedI have the same issue as well. Its a great module, it would be wort fixing it...
Comment #4
brks commentedI wonder if any trick I need to know to use this module.
The module gives almost the same list (of similar entries) to any node. I accidentally have two duplicated nodes with exactly the same content and title (they are feed items generated by feeds module from an RSS feed), and they are not 'similar entry' to one another according to the module.
I generated some Chinese nodes, and later some English nodes; the similar entries to any node is a list of Chinese nodes.
The similarity scores are all 0, but if I set the rule as "score>5", those with a score of 0 still list.
All these happened after a successful Cron.
Besides those in the views, any other configuration?
---------------------
update: I used to map feed description to feed item "description" field. "Similar Entries" does not consider the "feed items" "description. Instead, it considers "body". That's why all the scores are 0. So the right way is to map feed description to feed item 'body', and after that I do get scores above 0.
But the 'feeds' problem does not belongs to this issue, and the score filter still does not work.
Comment #5
CarbonPig commentedSame issue - would be awesome if this filter worked.
Comment #6
it-cruSame issue - have someone start any work on this? every code snippet or early patch would be great to take a look on this issue for trying work on this issue. thx from germany
Comment #7
it-cruI located this bug. Patch will come tomorrow!
Comment #8
it-cruIt seems that the argument handler needs a check for the language setting for the content type.
Perhaps somebody could test the patch with a multi-language D7 installation with translateable content types because I have currently not tested this case.
Comment #9
groovedork commentedThe views filter doesn't seem to work here either. I use Drupal 7 and l18n. I modified the module (manually), cleared cache under performance tab, did and update and a cron run, but no effect.
Funnily enough I also have the original drupal 6 site still running that used the similar entries block. This allows me to look at the same content and see that the difference quite clearly between a working module and one that doesn't.
Comment #10
dillix commentedI also have D6 and D7 sites with the same content. D6 version works great, D7 version doesn't.
Comment #11
Emilio13 commented#8 works for me. Thanks!
Comment #12
dillix commentedI think #8 should be committed we tested it on 5 projects.
Comment #13
introfini commented#8 also fixed the bug in several of my projects.
Comment #14
deekayen commentedThis looks like a duplicate of #2561577: Various fixes. The other patch included other stuff too, so I used it.
Comment #15
dillix commentedI think its not duplicate because without this patch similar dont find correct node scores for sites on Russian, Ukrainian and other non-latin languages.
Comment #16
dillix commentedComment #17
dillix commentedAlso I've found in views/similar_handler_argument_nid.inc:
$title = preg_replace('/[^a-z0-9 _-]+/i', '', $node->title);This string cuts off all non-latin symbols so, for russian language it shoud be:
$title = preg_replace('/[^a-z0-9а-я _-]+/iu', '', $node->title);So I think we should use other option to remove punctuation from title.
Comment #18
pashikk commentedIs there a working solution for 7.x-2.0-beta6?
Comment #19
dillix commentedNo, 7.x-2.0-beta6 doesn't work with Cyrillic articles.