Overview
When searching within the Employee Directory Web Part, the number of actual employees and those shown in the search result do not match.
For example, when you filter on a location, not all members of the specified office are displayed. When searching for the members of that office using their name, you see the expected Employees.
Solution
This issue can occur when you have the "Trim Duplicates" option enabled within your People Hub/Employee Directory Web Part. We recommend disabling this feature due to SharePoint's search engine often mishandling identifying duplicates.
Note: To help debug the underlying result source query, you can explore the use of 3rd-Party SharePoint Query Utilities.
- Navigate to the page containing your Employee Directory Web Part.
- Select Settings Cog > Edit Page.
- From the drop-down in the upper-right of the Web Part, select Edit Web Part.
- Within the Custom Settings section, un-check the "Trim Duplicates" option.
- Click OK to save the changes.
Testing
After disabling the Trim Duplicates feature, verify that the results within the Employee Directory correctly show the expected employees.