I am trying to use printRelatedItems on an image page, to display similar images.
I find it very difficult to display relevant images. The more tags there are, the less relevant the results (which is the contrary of what we would expect)
I think this is due to this part of the code
`
foreach ($tags as $tag) {
$count++;
if ($count ==1) {
$bool = '';
} else {
$bool = '|'; // connect tags by OR to get a wide range
}
`
In order to get relevant results, we should only connect tags by OR if there are three tags or less.
I tested this and it seems to give better relevance
`
foreach ($tags as $tag) {
$count++;
if ($count
Results seem to look fine on our own site to me. But we don't use loads of tags and this primarily for news articles (technically the same). So we are open to improvements. Feel free to open a ticket or pull request for the change.
The order of search results in general can be set via options. Additionally you can use the object model to do this directly via your theme, too. I don't think that general randomizing is of general use as you want a kind of relevance normally.