Skip to main content
Skip table of contents

B25.SearchResultCollection

Overview

Use this class to bundle together multiple instances of B25.SearchResult.

This class is what is expected to be returned by the B25.SearchHandler.getSearchResults() method. You can either create your own collection, or get one using B25.SearchContext.getDefaultResults().

Methods

addSearchResult

CODE
void addSearchResult(B25.SearchResult searchResult)

Adds the given search result to this collection.

Parameters:

Name

Type

Description

searchResult

B25.SearchResult

The search result you want to add.


addSearchResults

CODE
void addSearchResults(List<B25.SearchResult> searchResults)

Adds the given search list of results to this collection.

Parameters:

Name

Type

Description

searchResults

List<B25.SearchResult>

The list of search results you want to add.


getSearchResults

CODE
List<B25.SearchResult> getSearchResults()

Returns the individual results inside this collection.

Return value: List<B25.SearchResult>


setSearchResultsIcon

CODE
B25.SearchResult setSearchResultsIcon(String iconName)

Sets this result’s icon. You can use icons from this page: https://www.lightningdesignsystem.com/icons/ , except for the icons in the Action category. Reference icons by combining the category and the icon name, with a colon in between. For example, 'standard:contact' will give you the contact icon from the Standard category.

Return value: B25.SearchResult

Parameters:

Name

Type

Description

iconName

String

The name of the icon.

JavaScript errors detected

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

If this problem persists, please contact our support.