SearchResult
Represents one item in the SearchResults
Display all search results
<ul>
#foreach ($searchResult in $searchResults.items)
<li>$searchResult.description</li>
#end
</ul>
Additional context for $searchResult.object
If the search-result-object is of type 'page' you get access to the page-object and its properties when calling $searchResults.object.
Methods
Name | Type | Description |
---|---|---|
| String | The absolute link to this object. |
| String | A description of this search result (usually the page or blog post title). |
| String | The display title of this search result (usually the page or blog post title). |
| String | A description of this search result (usually the page or blog post title).
|
| String | The property of this search result for the given key. This will access the so-called content properties, which are different from the properties defined by the Page Properties macro. Example Keys:
|
| String | The relative link to this object. |
| String | The relative, decoded link to this search result. |
| The backing object of the search result. | |
| List<SearchResultQualifierPlaceholder> | A list of this search result's qualifiers. Qualifiers are only available when using the CQL search. Returns: the qualifiers |
| ContentType | The type of the search result. Possible values:
|