This article describes how to set up a search page and configure Vitextra Smart Search web part to create a custom search results page for SharePoint Online.
Create New Page
Open SharePoint site where you need to set up a search results page. Select + New and then select Page.
In the dialog, select the template you prefer and click Create page button.
Vitextra Smart Search support a single app part page. You can switch to App tab and select Smart Search to create a new single app page.
On the new page, select the circled + icon. Scroll down and select Smart Search in the list of available web parts.
Web Part Configuration
Open configuration page of the Smart Search web part.
The Smart Search supports two modes of operation:
- Single Source. Choose one of the built-in search sources to narrow the search scope. Tabs not presented in this mode.
- Multiple Sources (Tabs). Users can switch between selected sources.
To hide icons in tab caption clear Icon field in the search resources panel.
The settings below are to manage appearance of the web part.
Display Search Box. Show or hide search box.
The web part uses the search query from the top header search bar if it's not empty.
Default Search Query. Search query to perform a search if search box value is blank or the search box is hidden.
Enable Paging. Show or hide pagination.
Page Size. Number of items to show per page.
Show Total Count. Display total number of search results.
Select Show Filters to enable refinement panel.
To choose which fields will be available for filtering and set their order, choose the Configure Refiners button.
If the refinement panel is enabled users can filter search results by tag by clicking it in the list.
Select Enable Sorting to set default sorting of the search results.
Sorting is not applicable for Popular and Recently Changed Items data sources.
The search result item has twelve elements to show information. You can show or hide each of them except the Title.
Also, you can select the length of the summary (from 100 to 300 symbols).
The Smart Search provides three actions for users to perform keeping the context and no need to open additional browser tabs:
- Preview for a document to open it in the dialog window
- Play for video content to start playing it in the dialog
Go to site settings and select Search Settings under Site Collection Administration heading:
Type in server-relative URL to the new search page in the Results page URL:
It may take up to 5 minutes for the change to be applied. After that, SharePoint will redirect all search requests to the new page.