People search can be important to an organization when you need to find someone with a specific skill. One thing is to display the search box and you can find for someone but, that doesn't offer a great user experience. The other way is to display a people directory and provide option to filter them and narrow the results such as department, job title, location etc. based on some criteria which is called Refinement in SharePoint terms.
Here I'm going to show you how to configure the latter. This can be setup using the SharePoint 2013 search web part.
What you are looking at at the end of this configuration is this.
Here are the steps that you will follow:
- Assuming that you already have the Search Service and User Profile Service setup. Navigate to Site Settings > Under Look and Feel select Page Layouts and Site Templates
- Select (Welcome Page) Search People and (Welcome Page) Search Results under Page Layouts section.
- Now Navigate to Pages Library and select New Document > Page
- On the Create Page screen select Search People page layout, write an appropriate name for the page and select Create.
- This web part will not show any results until we specify a query. To show all the people by default, we need to modify the query for People Search Core Results Web Part. Select Change Query button in the web part properties. Under Basics select Property contentclass under Property Filter and enter spspeople as the manual value as shown below.
- Now, we will have the list of people displayed. To configure refinement filters, to show other metadata properties that are defined in our search center, select the Choose refiners option on the refinement web part. Select Department and Job Title. Note that the managed property must have the ‘Refinable’ option selected in the search schema for it to be available in this list.
For further configurations like sorting and table based layouts, I found this very helpful.
Enhance the search experience!
No comments:
Post a Comment