logo
search
Others

How to Exclude a SharePoint List from Site Search but Keep List Search

Nimra MalikNimra Malik Sep 28, 2026 869 views

Question details

The user wants to hide a specific SharePoint list from communication site search results without disabling the list's own internal search feature.

How to Exclude a SharePoint List from Site Search but Keep List Search
Product
Microsoft SharePoint
Device & OS
not provided
Scenario
Customizing SharePoint site search results to omit specific lists while maintaining local list search capabilities.
Observed behavior
Disabling list indexing in the advanced settings completely removes items from all search experiences, breaking the list's own search bar, which is not the desired outcome.
Before you start

Ensure you have Site Owner or Site Collection Administrator permissions to access and modify the search configuration and site verticals.

Solution 1Recommended

Use KQL to Customize the Site Search Vertical

This method uses Keyword Query Language (KQL) to exclude the specific list path from site-wide search results while keeping list search intact.

By modifying the site search verticals, you can filter out specific URLs or paths from the global site search. This ensures users won't see list items when searching the entire site, but they can still use the search box directly inside the list.

1
Navigate to Site Settings

Click the gear icon in your SharePoint site to open Settings, then select Site Information and click on View all site settings.

2
Access Search Configuration

Under the Microsoft Search section, click on Search insights and configuration, then navigate to the Verticals tab.

3
Add the KQL Exclusion Query

Select the search vertical you want to modify (such as the default 'All' vertical). In the query section, add a KQL query to exclude your list path. You can use the format NOT(path:https://yourdomain.sharepoint.com/sites/sitename/Lists/listname) or simply -path:https://yourdomain.sharepoint.com/sites/sitename/Lists/listname.

4
Save and Wait for Indexing

Save your vertical configuration. Note that these search changes are not instant and require the search index to update.

Use KQL to Customize the Site Search Vertical
Indexing Delay: Search configuration changes may take several hours to fully propagate and reflect in the live site search results.
Free Microsoft Office alternative

Boost Your Team's Productivity with WPS Office

While SharePoint handles your team's site search and list management, WPS Office provides a lightweight, free alternative for creating and editing your daily documents, spreadsheets, and presentations. Enjoy familiar interfaces and full compatibility with Microsoft file formats.

  1. 1. Download the Installer: Visit the official WPS Office website and download the free installer for your operating system.
  2. 2. Install WPS Office: Run the setup file and follow the straightforward on-screen instructions to complete the installation.
  3. 3. Open Your Documents: Launch WPS Office and open your existing Microsoft Office files to experience seamless editing and formatting.
High compatibility with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Lightweight installation and fast startup times for improved daily workflow.Familiar ribbon interface ensuring a seamless migration with zero learning curve.Built-in PDF editing and conversion tools at no extra cost.
microsoft office alternative - wps office

Frequently Asked Questions

Why can't I just disable list indexing in Advanced Settings?

Disabling the 'Allow items from this document library to appear in search results' option in the list's advanced settings removes the items from ALL search experiences. This prevents users from even using the local 'Search this list' box.

How long does it take for the KQL search exclusion to take effect?

Search configuration changes are not instant. It can take anywhere from a few hours up to 24 hours for SharePoint to crawl the changes and update the search index to reflect the new vertical exclusions.

Can I exclude multiple SharePoint lists using this method?

Yes, you can string together multiple KQL exclusions using logical operators. For example, you can add '-path:list1URL -path:list2URL' to exclude multiple specific lists from the search vertical simultaneously.

Will this affect Hub Site search results?

This specific vertical customization applies directly to the site where it is configured. If your site rolls up to a Hub Site, you may need to apply similar query exclusions to the Hub Site's search verticals to ensure consistency.