What is an In Focus Search Box
You can replicate a Search function (usually seen in the Atlas global search feature) to connect a search box to within any page in Atlas. This webpart will return any items matching the text entered by the user in the search input field.
Pre-requisites
Before an In Focus Search bar can be added to a page, it is a good idea to add the In Focus Webpart you want to show the results in, as in this example the In Focus Search Bar must be connected to an information source webpart in order to show the results back to the user. There are a number of In Focus Webparts to choose from:
- Communication
- Documents
- Emails
- Events
- External Insights
- FAQ's
- Ideas
- Pages
- Knowledge
- News
- People
- Spotlights
Adding an In Focus Search Box to your Page
Within the page you wish to add the search bar to, click the page Edit in the top-right hand side.
Find the webpart that you want to connect the search bar to (in this case it is a document webpart).
Hover between the sections so that the + button appears, and click to add a new webpart.
In the search bar which appears, type "Search". This will display a number of related search options that are available within Atlas.
The webpart we want to select in this case is called "In Focus Search Box (Atlas)" and shows a larger magnifying glass option (as shown in the screenshot below). Select this webpart option.
This will create the In Focus Search Box on the page which will look like the below
The search box must now be connected to an in focus webpart (in this example shown below, it is the Document Web part), so select the in focus webpart and click the edit icon in the submenu.
From within the right-hand configuration panel, click the Search header drop down.
Under "Search Query" click the 'Dynamic Value' radio button.
Under "Connect to Source" click the drop-down list to display a list of result sources from this page.
Select the correct source, in this case it is the "In Focus Search Box (Atlas)"
Under "In Focus Search Box (Atlas) properties" click the drop-down list
Select "Search query", which is likely the only option available
Click to activate the tick box next to "Use default search query"
Under "Default Search Query" type an asterisk * in the field. This is a wildcard which will return all results when nothing is typed into the search box.
Click "Republish" to save your changes.
Now, when a user types into the search box, the results will be refined accordingly. In the example below we are searching for test, and 322 results with the word 'test' have been returned.
Comments
0 comments
Please sign in to leave a comment.