This module seems to be a perfect match for something I've been looking for quite a while. Have to admit at the moment though I'm getting some pretty strange results, which of course should be expected for a dev module so not complaining, just sharing, and this could very well be my using the module and arguments incorrectly. So here's what I have:

- I have 300 nodes on my site. I set it to calculate 100 similarities per cron and selected my content types. But cron failed repeatedly until I turned off the module, so I think I'm confirming the resource limit bug the other person logged. When I switched it calculating one one content type and only 50 per cron, running cron was okay.

- I set the similarity score threshold to 50%

- I used the view-block that came with the Similarity view and placed it on all the pages of the content type I'm working with.

- Using just the default Similariy block without any changes, the block showed all the nodes on my site, not just nodes similar to the node the block was on presently. I think this just happens because the argument settings are set to display all results when the argument is not present. That in turn would mean that something is wrong for the argument not to be present.

Does this sound like a bug or my lack of understanding how this works? In essence, on any given node, I would like a block to appear that displays a list of nodes similar to the node at hand, ideally sorted by similarity-score. All the nodes I'm placing the block on take the form http://www.example.com/hub/[title-raw] (I'm using pathauto), so for example I would have a node with the URL http://www.example.com/hub/good-gracious-alive and would hope the block would display nodes similar to my "good gracious alive" node.

Could the issue be that the default path/argument provided is node/%/similar, which is a different form that my hub/[title-raw], or would that not make any difference? And since I'm not using the page display, but the block display, does it even matter what the page path is?

Thanks for any help, really look forward to using this module, and my apologies if any questions betray my ignorance of arguments and so forth.

Comments

Scott Reynolds’s picture

Yes so the argument needs to be there otherwise it doesn't filter the results.

The block provided by the module should work in this case.

With the views block, you need to provided a default argument. That means click the Similarity argument >> Provide default argument >> Node ID from URL

Scott Reynolds’s picture

Also, which similarity type are you using? The Search one doesn't scale at all. It needs to be rewritten

fumbling’s picture

Thanks, I'm trying that. I'm getting results now, but not sure if they're accurate. Of course, this plays into your next post, yes, I'm using search, so looks like I'll need to revisit the module when ready. I'll keep an eye out, and thanks for your help, appreciate it.