Skip to main content
Skip table of contents

SearchResults

Methods

NameTypeDescription
$searchResults.cqlErrorString

The CQL error message if there was an error in the used CQL query.

$searchResults.enableHighlights(enabled)n/a

Enable or disable highlighting of search results. Call this before rendering the results. Has no effect when using CQL search.

ParameterTypeDescription
enabledbooleanTrue if the highlighting should be enabled, otherwise false.
$searchResults.itemsList<SearchResult>

A list of the search results.

$searchResults.maxResultsPerPagelong

The maximum number of results per page (useful for pagination).

$searchResults.searchWordsList<String>

The search words from the query string that were actually used in the search (raw query string with the stop words removed). May be an empty list if there were none or if CQL search was used.

$searchResults.startIndexlong

The starting index (useful for pagination).

$searchResults.totallong

The total search results (useful for pagination).

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.