var search = container.getComponent('Search');
var searchParams = {q: "bag"};
var searchURL = search.getUrl(searchParams);
This is example for search bag
Need to call this method in entry point file of extension
Source: NetSuite Applications Suite – Use the Search Component to Set the ‘url’ property of Models (oracle.com)