Documentation
This needs
Foswiki:Extensions/SolrPlugin
Parameters
Implementation
%STARTINCLUDE%<!-- --><noautolink>%CALCULATE{"$SET(seenEntries,)"}%
%SOLRSIMILAR{"id:%BASEWEB%.%BASETOPIC%"
filter="web:%BASEWEB% type:topic field_TopicType_lst:BlogEntry"
fields="web,topic,title,score"
like="category,tag"
header="<div class='blogSideBarSection blogSideBarSimilar'>
<h2 >%TRANSLATE{"Similar"}%</h2><ul>"
footer="</ul></div>"
format="<li>
<a href='%SCRIPTURLPATH{"view"}%/$web/$topic' title='score: $score'>
$percntDBCALL{\"Applications.RenderTopicThumbnail\"
OBJECT=\"$web.$topic\"
TYPE=\"plain\"
}$percnt<!-- -->
<!-- -->$title
$percntDBQUERY{
header=\"<br /><span class='foswikiTopicInfo foswikiSmallish'>\"
topic=\"$web.$topic\"
format=\"$formfield(Summary)\"
footer=\"</span>\"
}$percnt
%CLEAR%
</a>
</li>$percntCALCULATE{\"$SET(seenEntries,$GET(seenEntries)|$topic)\"}$percnt"
separator="$n"
rows="5"
}%</noautolink><!-- -->%STOPINCLUDE%
Test
%SOLRSIMILAR{"id:Applications/BlogApp.RenderSimilarBlogEntries"
filter="web:Applications/BlogApp type:topic field_TopicType_lst:BlogEntry"
fields="web,topic,title,score"
like="category,tag"
header=""
format="
$percntDBCALL{\"Applications.RenderTopicThumbnail\"
OBJECT=\"$web.$topic\"
TYPE=\"plain\"
}$percnt
$title
$percntDBQUERY{
header=\"
\"
topic=\"$web.$topic\"
format=\"$formfield(Summary)\"
footer=\"\"
}$percnt
$percntCALCULATE{\"$SET(seenEntries,$GET(seenEntries)|$topic)\"}$percnt"
separator="$n"
rows="5"
}%
Calls to 'RenderSimilarBlogEntries'
Copyright
© 2005-2019
http://michaeldaumconsulting.com
This file is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version. For
more details read the
LICENSE.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.