This renders a tag cloud getting tags from a solr search on recently changed data.
%STARTINCLUDE%<noautolink> %DBCALL{"%WEB%.%TOPIC%" section="search" keywords="%KEYWORDS{default=""}%" theweb="%SUBST{text="%THEWEB{default="all"}%" pattern="/" format="."}%" limit="%LIMIT{default="100"}%" filter="type:%TYPE{default="topic"}% %IF{"defined THEWEB and $THEWEB!='all'" then="web:%SUBST{text="%THEWEB{default=""}%" pattern="/" format="."}%" }% %IF{"defined TAG" then="$percntFORMATLIST{\"%TAG%\" split=\"\s*,\s*\" pattern=\"^(\-)?(.*)$\" format=\"$1tag:$2\" separator=\" \"}$percnt" }% %IF{"defined CAT" then="$percntFORMATLIST{\"%CAT%\" split=\"\s*,\s*\" patttern=\"^(\-)?(.*)$\" format=\"$1category:$2\" separator=\" \"}$percnt" }% %IF{"defined DAYS" then="date:\\"[NOW/DAY-%DAYS%DAY TO NOW]\\"" }%" }% %TAGCLOUD{ terms="%SOLRFORMAT{ "solrtagcloud1" format_tag="$key:$count," separator_tag=" " }%" header="<div class='solrTagCloud clsTagCloud'>" format="<span style='font-size:$weightpx;line-height:110%'><a href='$percntSOLRSCRIPTURL{ topic=\"%BASEWEB%.WebSearch\" tag=\"$term\" category=\"%CAT{default=""}%\" web=\"%SUBST{text="%THEWEB{default=""}%" pattern="/" format="."}%\" union=\"web\" type=\"%TYPE{default="topic"}%\" }$percnt' style='color:$fadeRGB(%TAGCLOUD_START{default="111,169,255"}%,%TAGCLOUD_END{default="0,89,224"}%);' class='solrFacetValue tag_$term' name='tag_$term' value='$term'>$term</a></span>" footer="</div>" group="<strong>$group</strong> " split="\s*,\s*" buckets="25" offset="13" warn="off" min="%MIN{default="0"}%" }%</noautolink>%STOPINCLUDE%
%STARTSECTION{"search"}%%SOLRSEARCH{ "%keywords%" id="solrtagcloud1" sort="date desc" type="edismax" fields="" web="%theweb%" filter="%filter% %IF{"$RECENCY != 'all'" then="$percntSOLRSEARCH{\"%keywords% tag:*\" sort=\"date desc\" type=\"edismax\" fields=\"id\" web=\"%theweb%\" filter=\"%filter%\" rows=\"%RECENCY{default="100"}%\" format=\"$id\" separator=\" OR \" header=\"id:(\" footer=\")\" }$percnt"}%" facets="tag" facetlimit="%limit%" rows="30" }%%ENDSECTION{"search"}%