top of page
Writer's pictureKasper Larsen

What to do when the SharePoint Search doesn't pick up your content? (part 1 of 4)


Unfortunately, you might run into situations where your content doesn't show up in your PnP Modern Search result web part, and in this blog post I will suggest how to resolve the issue.

This is part 1 of 4 in the series.


Step 1 - ensure your content is indexed

From time to time, we see cases where the content isn't indexed at all. This is often the case after larger migrations of content into SharePoint or when MS has performance issues in general. We don't know exactly how the reindexing service works, but it seems to be using some sort of priority queue and reindexing is apparently often skipped when there are performance issues.


You can use


to verify if your content has been indexed.


Most likely your script will investigate whether a specific library or list has been indexed, and the command will thus be like this:

Get-PnPSearchCrawlLog -Filter "https://tenantname/sites/site/library"


If your content has not been indexed since the last time you updated it, I will suggest that you try to reindex the content in either the library or the site collection. Be advised that there is NO SLA for how soon the content will be indexed, so you might have to wait up to 24 hours. Do NOT the reindex link in the library or site more than once every 24 hours, as it can cause the library or site to be reset in the reindexing queue and thus further delayed.


Step 1 a

If your content isn't indexed within the 24 hours after you requested a reindexing, there are a number of potential reasons:

  1. Your site and/or library is marked as "do not index"

2. Your account does not have permissions to access the content (check that you can access the content on site, list/library/item level)

3. If the search crawler can't open the file due to a password protection it will not be indexed.

4. If you are using major and minor versioning: the content perhaps isn't published yet.

5. Site collection has another default Search Result Source than "LocalSharePointResult"






124 views0 comments

Comments


bottom of page