Forum Discussion
Search people - not returning all spspeople
We have a people search box in SharePoint that will return names found in the People Search Core Results web part. The query is simple:
Selects the query Local People Results (System) using the following query text:
{searchboxquery} contentclass=spspeople
AccountName: @ourdomainname
A few weeks ago, the results were working sometimes and other times not. For example, search for Mary didn't work but searching for *Mary, did!
A sure way to get results is if we used a wildcard at the front or end of the person's name, however we never had to do this before. What can I check to see what has changed that the long standing query above is no longer reliable?
1 Reply
- Maggan_WBrass Contributor
What environment are you in? I´m asking because you´ve tagged the post with SharePoint Online and the People Search Core Results web part is a classic web part which first got introduced in SharePoint Server 2010.
If you are in SPO I would highly recommend that you create a modern page and start using modern web parts to achieve the same. Here´s an excellent article about how to set this up: https://techcommunity.microsoft.com/t5/microsoft-365-pnp-blog/using-the-pnp-modern-search-web-parts/ba-p/2239771.