##SETTING VARIABLES ========= #set($exclude = "-mimeType:*css* -mimeType:*js* -mimeType:*plain -mimeType:*jpg -mimeType:*png -mimeType:*jpeg -mimeType:*javascript* -mimeType:*velocity*") #set($urlList = $contents.getEmptyList()) #if ($UtilMethods.isSet($request.getParameter("q"))) #set($q = $request.getParameter("q")) #set($qUrl = "q=$!{q}") #end #set($show = 10) #set($page = $request.getParameter("p")) #if(! $UtilMethods.isSet($page)) #set($page = 0) #end #set($page = $math.add($page, 0)) #if($page < 0) #set($page = 0) #end #set($offset = $math.mul($page, $show)) #set($end = $math.mul($math.add($page,1), $show)) #if($UtilMethods.isSet($request.getParameter("q"))) ## QUERY ============= #set($runQ = $q.replaceAll("\"", "")) #set($newQ = "") #if(!$runQ.contains("+")) #foreach($xx in $runQ.split(" ")) #set($newQ = " $newQ +(content:$xx title:$xx $xx*) ") #end #set($runQ = "$newQ") #end #if($UtilMethods.isSet($mimeType)) #set($runQ = "$runQ +mimeType:$mimeType") #end #if($UtilMethods.isSet($keyword)) #if($keyword.contains(" ")) #set($runQ = "$runQ +keywords:${esc.q}$keyword${esc.q}") #else #set($runQ = "$runQ +keywords:$keyword") #end #end #if($UtilMethods.isSet($modifiedOn)) #set($runQ = "$runQ +modified:$modifiedOn") #end #set($runQ = "$runQ $exclude") ##CALLING SEARCH VIEWTOOL ======= ##set($indexToSearch = "Site Search") ## null for the first argument searches the 'default' index #set($searchresults = $sitesearch.search($indexToSearch, $!runQ, $offset, $end)) ##PAGINATION VARIABLES ============= ##set($numberOfPages = $math.div($searchresults.totalResults,$show)) #set($numberOfPages = $math.div($searchresults.totalHits,$show)) #set($intPages = $math.toInteger($numberOfPages)) #if($intPages < $numberOfPages) #set($numberOfPages = $math.add($intPages, 1)) #end #end #if($searchresults.results.size() > 0)
We found $searchresults.results.size() results in your search
$title