How to Disable Document Content Search in a SharePoint Library
Question details
The user wants to configure a SharePoint document library so that searches return results based on file names and metadata, without indexing the actual text content of files like PDFs and Word documents.

- Product
- SharePoint
- Device & OS
- not provided
- Scenario
- Configuring search and indexing behavior for a specific document library to exclude internal file contents from search results.
- Observed behavior
- SharePoint currently indexes the full text contents of documents, leading to unwanted search results based on internal file text rather than just file names or metadata.
Ensure you have Site Owner or Full Control permissions for the SharePoint document library or site to modify its advanced settings.
Exclude the Document Library from Search Indexing
Adjust the advanced settings of your SharePoint document library to prevent its items from appearing in search results.
By default, SharePoint indexes both the metadata and the contents of documents in a library. To prevent the text inside PDF and Word files from showing up in search queries, you can disable search indexing at the library level.
Go to the SharePoint document library you want to modify. Click the gear icon in the top right corner to open the Settings menu, then select 'Library settings'.
In the Library Settings panel, click on 'More library settings' if prompted, then select 'Advanced settings' from the General Settings column.
Scroll down to the 'Search' section. Look for the option 'Allow items from this document library to appear in search results?' and select 'No'.
Scroll to the bottom of the page and click 'OK' to apply the new indexing behavior.

Disable Search Indexing for the Entire SharePoint Site
Use this method if you want to prevent all libraries and lists on the site from being indexed by SharePoint search.
Manage Your Documents Seamlessly with WPS Office
While configuring SharePoint settings for your team, you can equip them with a free, lightweight, and highly compatible office suite. WPS Office provides an excellent alternative to Microsoft Office, supporting all major document formats and ensuring smooth team collaboration.
- 1. Download WPS Office: Visit the official WPS website and download the free WPS Office suite for your operating system.
- 2. Install the Suite: Follow the simple on-screen instructions to install WPS Office on your device in just a few minutes.
- 3. Open SharePoint Documents: Download your files from SharePoint and open them seamlessly in WPS Writer, Spreadsheet, or Presentation to continue working.

Frequently Asked Questions
Will disabling search indexing change my file permissions?
No, changing the search indexing settings only removes the items from search results. It does not affect file permissions or prevent users with proper access rights from navigating directly to the library and opening the documents.
Can I disable content search but keep file name search in SharePoint?
SharePoint's default library settings do not easily separate file name indexing from content indexing at the library level. Setting search visibility to 'No' removes the entire item from search. For advanced scenarios, custom search schema mapping or managed properties via the SharePoint Admin Center might be required.
How long does it take for search changes to take effect?
After modifying the search settings for a library or site, it may take some time—ranging from a few minutes to several hours—for SharePoint's next search crawl to process the changes and update the index.




