B25.SearchResultCollection

Overview

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

1 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

1 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

1 List<B25.SearchResult> getSearchResults()

Returns the individual results inside this collection.

Return value: List<B25.SearchResult>


setSearchResultsIcon

1 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.