Created
August 20, 2019 20:00
-
-
Save bryanboza/27484bac1f6c9d3693c5ecafc9c6eaf0 to your computer and use it in GitHub Desktop.
ss viewtool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##PERFORM THE SEARCH | |
#set($query="dotcms") | |
#set($searchresults = $sitesearch.search($query,0,100)) | |
##DISPLAY THE SEARCH RESULTS OBJECT | |
<p>Start: $searchresults.start</p> | |
<p>Total Results: $searchresults.totalResults</p> | |
<p>Took: $searchresults.took</p> | |
<p>Limit: $searchresults.limit</p> | |
<p>Offset: $searchresults.offset</p> | |
<p>MaxScore: $searchresults.maxScore</p> | |
<p>Index: $searchresults.index</p> | |
<p></p> | |
##DISPLAY EACH INDIVIDUAL SEARCH RESULT | |
<p>Search Results: $searchresults.results.size()</p> | |
<ul> | |
#foreach($result in $searchresults.results) | |
<li>Title:$result.title</li> | |
<ul> | |
<li>Filename:$result.fileName</li> | |
<li>ID:$result.id</li> | |
<li>Host:$result.host</li> | |
<li>Uri:$result.uri</li> | |
<li>Url:$result.url</li> | |
<li>MimeType:$result.mimeType</li> | |
<li>Description: $result.description</li> | |
<li>Keywords:$result.keywords</li> | |
<li>Author:$result.author</li> | |
<li>contentLength:$result.contentLength</li> | |
<li>modified:$result.modified</li> | |
<li>score:$result.score</li> | |
</ul> | |
#end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment