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"
}%