As a SharePoint site owner, you may need to show specific documents like policies without manually moving them into a single folder. A search-based view lets you automatically display documents that match defined keywords or metadata. This article explains how to create a search-based view for policies using SharePoint’s built-in search features. You will learn the exact steps to set up the view, configure the search query, and avoid common setup mistakes.
Key Takeaways: Creating a Search-Based Policies View
- Site Settings > View > Create View: Start by selecting the Search Results view type from the document library settings.
- Query Builder > Keyword filter: Use a keyword like “policy” or a managed property like “DocumentType:Policy” to define which items appear.
- Scope > This Site Collection: Restrict the search to the current site collection so external content does not appear in the view.
What a Search-Based View Does and Why Use It for Policies
A search-based view in SharePoint shows items from a document library that match a search query you define. Unlike a standard view that filters items already in the library, a search-based view can pull items from across the site collection. This is useful for policy documents because policies often sit in different subsites or libraries. Instead of creating a folder structure or copying files, you write one query that collects all items tagged with the policy content type or containing the word “policy” in the title.
Before you start, confirm that your site collection has search enabled. Search is turned on by default in modern SharePoint sites, but some on-premises or hybrid environments may require the Search Service Application to be running. You also need at least Edit or Design permissions on the document library where you plan to create the view. If you are a site owner, you have these permissions automatically.
Key Terms to Understand
Search query: The text or property filter that tells SharePoint which items to show. Example: Title:policy shows all items whose title starts with “policy”.
Managed property: A search property mapped from site columns. For example, a column named “Document Type” can become a managed property named DocumentType.
Scope: The area where search looks for items. For a policy view, you typically set the scope to the current site collection.
Steps to Create a Search-Based View for Policies
Follow these steps exactly to build a search-based view that collects policy documents from your SharePoint site collection.
- Open the document library where the view will live
Navigate to the document library that will host the view. This library does not need to contain the policies themselves. The view will display results from the entire site collection. - Access the library settings
Click the gear icon in the top-right corner, then select Library settings. If you do not see this option, confirm you have Edit or Design permissions. - Create a new view
Under the Views section, click Create view. A list of view types appears. - Select the Search Results view type
Click Search Results. This view type allows you to write a search query instead of a standard filter. - Name the view
Enter a name such as All Policies or Policy Documents View. Make this view the default view if you want users to see it first when they open the library. - Set the search scope
In the Scope section, select This Site Collection. This ensures the view only returns items from your site collection, not from other sites in the tenant. - Write the search query
In the Query section, enter the search text that identifies policies. For simple keyword matching, typepolicy. For more precise results, use a managed property. Example:DocumentType:PolicyorContentType:Policy. Click the Test query button to see a preview of the results. - Configure the columns to display
In the Columns section, select which columns appear in the view. Include at least Title, Modified, and Modified By so users can identify the documents. Click OK to save the view.
Common Mistakes and Limitations to Avoid
Even with the correct steps, the view may not show the expected results. Below are the most frequent issues and how to fix them.
Search Results Are Empty Even Though Policies Exist
This usually happens because the search index has not crawled the items yet. New or modified documents can take up to 15 minutes to appear in search results. Wait 15 minutes and refresh the view. If items still do not appear, ask your tenant administrator to trigger a full crawl of the site collection.
The View Shows Documents from Other Sites
The scope may be set to All Sites or Default instead of This Site Collection. Edit the view and change the scope setting. Also verify that the search query is specific enough. A query like policy can match items from any site. Use a managed property combined with the site collection path to narrow results.
Users Cannot See the View in the Library
If you created the view but users do not see it in the view dropdown, check the view’s audience setting. In the view creation page, ensure Make this the default view is selected or that the view is set to appear as a personal view only for you. For a public view, select Make this a public view.
Managed Properties Are Not Available in the Query Builder
Managed properties must be created and mapped by a search administrator. If you do not see a property like DocumentType, use a keyword query instead. For example, Title:policy OR Description:policy captures most policy documents. Contact your SharePoint admin to create custom managed properties for your site columns.
Search-Based View vs Standard Filter View: Key Differences
| Item | Search-Based View | Standard Filter View |
|---|---|---|
| Data source | Search index across site collection | Items already in the library |
| Setup time | Requires query writing and testing | Quick column filtering |
| Update frequency | Updates when search index refreshes (up to 15 min) | Updates immediately |
| Scope | Can include multiple libraries and subsites | Limited to one library |
| Permissions | Respects item-level permissions from search results | Respects library-level permissions |
Now you can create a search-based view that automatically gathers policy documents from across your site collection. Test the view with a few sample policies before making it the default view. For advanced filtering, ask your search administrator to map a managed property called PolicyCategory so you can filter by policy type directly in the query.