Skip to main content

Clear search results

To clear all current search results, call the ClearResults method of the ISearchManager object. The ISearchManager object can be obtained using the IApplication.Search property.

public void ClearSearchResults(ICommandContext c, ICommandParams p) 
{
//Clear all search results
ISearchManager searchManager = c.App.Search;
searchManager.ClearResults();
}