historyManager.delegate = fullView;
// If this in compiled GWT, set up the search capability. If it is hosted mode, search
// capability is too slow and will be left disabled.
if (GWT.isScript()) {
SearchManager searchManager = new SearchManager(serviceLoader,
searchIndex,
new DiscoveryFullTextIndexingStrategy(),
new DirectoryIndexingStrategy(),
new HistoryItemIndexingStrategy(),
ImmutableList.of(fullView, historyManager));