{"id":9292,"date":"2021-08-11T11:12:03","date_gmt":"2021-08-11T09:12:03","guid":{"rendered":"https:\/\/help.metashare.com\/?page_id=9292"},"modified":"2025-07-07T17:35:00","modified_gmt":"2025-07-07T15:35:00","slug":"how-do-i-reindex-a-site-or-a-library-in-sharepoint","status":"publish","type":"page","link":"https:\/\/help.metashare.com\/en\/metashare\/faq\/search\/how-do-i-reindex-a-site-or-a-library-in-sharepoint\/","title":{"rendered":"How do I reindex a site or a library in SharePoint"},"content":{"rendered":"\n<p>Content in SharePoint needs to be reindexed whenever changes have been done to SharePoint&#8217;s search schema and these created or updated managed properties are used in MetaShare, as filters or columns in any of MetaShare&#8217;s start pages. In some cases you also might need to reindex a site&#8217;s or a library&#8217;s content if search does not seem to work in the site\/library.<\/p>\n\n\n\n<p>When you reindex a site\/library, all items in the site\/library will be flagged for recrawl, and during the next incremental or continuous crawl, the items will be recrawled.<\/p>\n\n\n\n<p>A prerequisite to reindex a site\/library is that you have the &#8220;Manage site&#8221; permission, a permission that the site collection administrator of a site has.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to reindex a SharePoint library<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/help.metashare.com\/en\/usermanual\/how-to-open-a-metashare-workspace-in-sharepoint\">Open the workspace\u2019s SharePoint site<\/a>.<\/li>\n\n\n\n<li>Open the document library\u2019s settings by clicking on \u201cSite contents\u201d on the left navigation, then clicking on the ellipsis (three vertical dots) and selecting the \u201cSettings\u201d option:<br><img loading=\"lazy\" decoding=\"async\" width=\"662\" height=\"363\" src=\"https:\/\/help.metashare.com\/wp-content\/uploads\/image-743-2.png\" alt=\"Open the document library's settings\"><\/li>\n\n\n\n<li>Under the \u201cGeneral Settings\u201d section, click on the \u201cAdvanced settings\u201d link:<br><img loading=\"lazy\" decoding=\"async\" width=\"649\" height=\"527\" class=\"wp-image-9305\" style=\"width: px\" src=\"https:\/\/help.metashare.com\/wp-content\/uploads\/Link-to-a-librarys-advanced-settings.jpg\" alt=\"Link to a library's advanced settings\" srcset=\"https:\/\/help.metashare.com\/wp-content\/uploads\/Link-to-a-librarys-advanced-settings.jpg 649w, https:\/\/help.metashare.com\/wp-content\/uploads\/Link-to-a-librarys-advanced-settings-300x244.jpg 300w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/li>\n\n\n\n<li>Half way down the page, click on the &#8220;Reindex Document Library&#8221; button:<br><img loading=\"lazy\" decoding=\"async\" width=\"388\" height=\"112\" class=\"wp-image-9307\" style=\"width: px\" src=\"https:\/\/help.metashare.com\/wp-content\/uploads\/Button-for-reindexing-a-library.jpg\" alt=\"Button for reindexing a library\" srcset=\"https:\/\/help.metashare.com\/wp-content\/uploads\/Button-for-reindexing-a-library.jpg 388w, https:\/\/help.metashare.com\/wp-content\/uploads\/Button-for-reindexing-a-library-300x87.jpg 300w\" sizes=\"auto, (max-width: 388px) 100vw, 388px\" \/><\/li>\n\n\n\n<li>You will now have to confirm that you want to reindex the library by clicking on the &#8220;Reindex Document Library&#8221; button:<br><img loading=\"lazy\" decoding=\"async\" width=\"609\" height=\"129\" class=\"wp-image-9309\" style=\"width: px\" src=\"https:\/\/help.metashare.com\/wp-content\/uploads\/Reindex-library-confirmation.jpg\" alt=\"Reindex library confirmation\" srcset=\"https:\/\/help.metashare.com\/wp-content\/uploads\/Reindex-library-confirmation.jpg 609w, https:\/\/help.metashare.com\/wp-content\/uploads\/Reindex-library-confirmation-300x64.jpg 300w\" sizes=\"auto, (max-width: 609px) 100vw, 609px\" \/><\/li>\n\n\n\n<li>You can now close the page. The library is flagged for reindexing and the library&#8217;s content will start to appear in search results when the next search crawl starts, normally within 15 minutes.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">How to reindex a SharePoint site<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/help.metashare.com\/en\/usermanual\/how-to-open-a-workspace\">Open the workspace<\/a>.<\/li>\n\n\n\n<li><a href=\"https:\/\/help.metashare.com\/en\/usermanual\/how-to-open-a-metashare-workspace-in-sharepoint\">Open the workspace in SharePoint<\/a>.<\/li>\n\n\n\n<li>Click on the \u201cSharePoint Settings\u201d icon and select the \u201dSite information\u201d option:<br><img loading=\"lazy\" decoding=\"async\" width=\"322\" height=\"380\" class=\"wp-image-9293\" style=\"width: 300px\" src=\"https:\/\/help.metashare.com\/wp-content\/uploads\/Menu-under-site-settings.jpg\" alt=\"Menu under site settings\" srcset=\"https:\/\/help.metashare.com\/wp-content\/uploads\/Menu-under-site-settings.jpg 322w, https:\/\/help.metashare.com\/wp-content\/uploads\/Menu-under-site-settings-254x300.jpg 254w\" sizes=\"auto, (max-width: 322px) 100vw, 322px\" \/><\/li>\n\n\n\n<li>On the next page, click on &#8220;View all site settings&#8221;:<br><img loading=\"lazy\" decoding=\"async\" width=\"340\" height=\"634\" class=\"wp-image-9295\" style=\"width: 300px\" src=\"https:\/\/help.metashare.com\/wp-content\/uploads\/Link-to-view-all-site-settings.jpg\" alt=\"Link to view all site settings\" srcset=\"https:\/\/help.metashare.com\/wp-content\/uploads\/Link-to-view-all-site-settings.jpg 340w, https:\/\/help.metashare.com\/wp-content\/uploads\/Link-to-view-all-site-settings-161x300.jpg 161w\" sizes=\"auto, (max-width: 340px) 100vw, 340px\" \/><\/li>\n\n\n\n<li>Under the \u201cSearch\u201d section, click on the \u201cSearch and offline availability\u201d link:<br><img loading=\"lazy\" decoding=\"async\" width=\"199\" height=\"167\" class=\"wp-image-9297\" style=\"width: 200px\" src=\"https:\/\/help.metashare.com\/wp-content\/uploads\/Link-to-Search-and-offline-availability.jpg\" alt=\"Link to Search and offline availability\"><\/li>\n\n\n\n<li>On the &#8220;Search and Offline Availability&#8221; page, click on the &#8220;Reindex site&#8221; button:<br><img loading=\"lazy\" decoding=\"async\" width=\"779\" height=\"623\" class=\"wp-image-9299\" style=\"width: px\" src=\"https:\/\/help.metashare.com\/wp-content\/uploads\/Button-that-reindexes-a-SharePoint-site.jpg\" alt=\"Button that reindexes a SharePoint site\" srcset=\"https:\/\/help.metashare.com\/wp-content\/uploads\/Button-that-reindexes-a-SharePoint-site.jpg 779w, https:\/\/help.metashare.com\/wp-content\/uploads\/Button-that-reindexes-a-SharePoint-site-300x240.jpg 300w, https:\/\/help.metashare.com\/wp-content\/uploads\/Button-that-reindexes-a-SharePoint-site-768x614.jpg 768w\" sizes=\"auto, (max-width: 779px) 100vw, 779px\" \/><\/li>\n\n\n\n<li>You will now have to confirm that you want to reindex the site by clicking on the &#8220;Reindex site&#8221; button:<br><img loading=\"lazy\" decoding=\"async\" width=\"610\" height=\"136\" class=\"wp-image-9303\" style=\"width: px\" src=\"https:\/\/help.metashare.com\/wp-content\/uploads\/Reindex-site-confirmation-1.jpg\" alt=\"Reindex site confirmation\" srcset=\"https:\/\/help.metashare.com\/wp-content\/uploads\/Reindex-site-confirmation-1.jpg 610w, https:\/\/help.metashare.com\/wp-content\/uploads\/Reindex-site-confirmation-1-300x67.jpg 300w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/li>\n\n\n\n<li>You can now close the page. The site is flagged for reindexing and the site&#8217;s content will start to appear in search results when the next search crawl starts, normally within 15 minutes.<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-group has-accent-2-background-color has-background\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\">Get started with PnP Powershell<\/h2>\n\n\n\n<p>This page contains code snippets for PnP PowerShell, a module from the Patterns and Practices community with many useful commands for managing Microsoft 365.<\/p>\n\n\n\n<p>To get started you need to:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/scripting\/install\/installing-powershell-on-windows\" target=\"_blank\" rel=\"noreferrer noopener\">Install PowerShell 7<\/a> on your machine<\/li>\n\n\n\n<li><a href=\"https:\/\/pnp.github.io\/powershell\/articles\/installation.html\" target=\"_blank\" rel=\"noreferrer noopener\">Install the PnP.PowerShell module<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/pnp.github.io\/powershell\/articles\/registerapplication.html\" target=\"_blank\" rel=\"noreferrer noopener\">Register an app in Entra ID<\/a> that PnP.PowerShell can use for authentication <\/li>\n\n\n\n<li>Start PowerShell 7 from the start menu (or run pwsh.exe). PnP.PowerShell is imported automatically.<\/li>\n\n\n\n<li>Connect to your SharePoint site using:<br><code>Connect-PnPOnline `<br>-Interactive `<br>-Url \"https:\/\/[tenant].sharepoint.com\/\" `<br>-ClientId \"[Your PnP PowerShell App Id, found in Azure Portal]\"<\/code><\/li>\n\n\n\n<li>Run any of the available <a href=\"https:\/\/pnp.github.io\/powershell\/cmdlets\/index.html\">commands<\/a><\/li>\n<\/ol>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">How to reindex all SharePoint sites<\/h2>\n\n\n\n<p>You can reindex all SharePoint sites by using <a href=\"https:\/\/ways.sharepoint.com\/:u:\/s\/Ways-Public\/EbvAu5Eee0BMgKJzBiUkRNUBJVfwsB3jwqcnZFIfy8m2jQ\" target=\"_blank\" rel=\"noreferrer noopener\">this PnP PowerShell Script<\/a>.<\/p>\n\n\n\n<p>If the user that runs the script has adequate permissions on a site level to request a reindex, then the action will be executed with the existing permissions, else the user will first temporarily be added as an admin on the site and after the site has been requested to be reindexed, the user\u2019s admin-permission on the site will be revoked.<\/p>\n\n\n\n<p>Information on how to run the script is available in the README file.<\/p>\n\n\n\n<div class=\"wp-block-group has-text-bright-color has-accent-1-background-color has-text-color has-background has-link-color wp-elements-5715d999d759a44a854d1a0508fae595\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading has-text-bright-color has-text-color has-link-color wp-elements-d1bac14c5327bf7abb712f1154155733\">Discover MetaShare<\/h2>\n\n\n\n<p>Metadata-centric document management system in Microsoft 365\/SharePoint<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Eliminates annoying gaps in standard SharePoint<\/li>\n\n\n\n<li>Ensures data in SharePoint is well structured<\/li>\n\n\n\n<li>Structures with metadata instead of storing in traditional folders<\/li>\n\n\n\n<li>Centralized and simplified administration<\/li>\n\n\n\n<li>Orchestration\/provisioning of settings<\/li>\n\n\n\n<li>Refined Enterprise search<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/metashare.com\/en\/demo\/\">See demo<\/a><\/div>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Content in SharePoint needs to be reindexed whenever changes have been done to SharePoint&#8217;s search schema and these created or updated managed properties are used in MetaShare, as filters or columns in any of MetaShare&#8217;s &#8230; <a title=\"How do I reindex a site or a library in SharePoint\" class=\"read-more\" href=\"https:\/\/help.metashare.com\/en\/metashare\/faq\/search\/how-do-i-reindex-a-site-or-a-library-in-sharepoint\/\" aria-label=\"Read more about How do I reindex a site or a library in SharePoint\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"parent":10733,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":{"0":"post-9292","1":"page","2":"type-page","3":"status-publish","5":"no-featured-image-padding"},"_links":{"self":[{"href":"https:\/\/help.metashare.com\/en\/wp-json\/wp\/v2\/pages\/9292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.metashare.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/help.metashare.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/help.metashare.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/help.metashare.com\/en\/wp-json\/wp\/v2\/comments?post=9292"}],"version-history":[{"count":10,"href":"https:\/\/help.metashare.com\/en\/wp-json\/wp\/v2\/pages\/9292\/revisions"}],"predecessor-version":[{"id":12184,"href":"https:\/\/help.metashare.com\/en\/wp-json\/wp\/v2\/pages\/9292\/revisions\/12184"}],"up":[{"embeddable":true,"href":"https:\/\/help.metashare.com\/en\/wp-json\/wp\/v2\/pages\/10733"}],"wp:attachment":[{"href":"https:\/\/help.metashare.com\/en\/wp-json\/wp\/v2\/media?parent=9292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}