I followed How to: Create a Simple SharePoint 2013 People Directory to create a search result for our employee directory. I used a basic "department:departmentname" refiner to show the results from one particular department, which seemed to work fine.
Unfortunately, I found out afterwards that because our 5,000+ employees AD is so messy - people spell their department name wrong, abbreviate it or write it in various non-standard ways - these results are inaccurate and we end up missing a lot of people in the results.
How would you go about writing a web part query statement that finds all of these random people in several different departments within AD? We know most of the AD misspellings, patterns and abbreviations, but now we just need to write the proper query to grab them.
Or is there another way to get the results I'm after?