相关文章推荐
帅气的红酒  ·  案件信息公开·  1 年前    · 
大鼻子的镜子  ·  octotree·  1 年前    · 

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft Edge More info about Internet Explorer and Microsoft Edge

In this article

When users search on a site, results can come from many places such as columns, libraries, and pages. A site owner can change search settings to decide whether content is allowed to appear in search results. Permissions on content also affect whether users are allowed to see the content in search results. A good understanding of how permissions and search settings work can help you ensure that users can see the right documents and sites in the search results.

Search results are always security trimmed, so users will only see content they have permission to see. The search settings only define what content is included in the search index.

There are specific scenarios where users have permissions to see the content but are still unable to find it in the search results. For more details, see Search results don't appear for group owners after creating a new Office 365 group .

Plan to make your content available in search results

As a site owner, you can use settings to control whether content can appear in search results. Content is stored in many places including sites, lists, libraries, Web Parts, and columns. By default, most content contained in a site, list, library, Web Part page, or column will be crawled and added to the search index. What's in the search index decides what content can appear in search results both in the classic and modern search experiences. The permissions that are set on items, lists, libraries, sites, and so forth, also affect whether users can see the content in search results.

Site owners and site collection administrators can choose whether content can appear in search results. By default, the content of a site can appear in search results. If a site owner or site collection administrator specifies that the content from a particular site can't appear in search results, then the other search results settings such as those for lists, libraries, ASPX pages, and columns set on that site wouldn't have any effect.

Similarly, if a site owner or site collection administrator prevents list or library content from appearing in search results, then excluding columns wouldn't have any effect. It's important to know what settings are inherited from higher levels in order to plan search effectively.

Understand search settings and permissions

One of the responsibilities of a site owner is to control who has access to content. You can give some people permission to read and change content, allow others to only read content, and prevent others from viewing content entirely. In order to accommodate this flexibility, you use permissions groups, which are assigned specific permission levels. To allow users access to the site or to content on that site, a site owner assigns users to one or more security groups. By using permissions settings in conjunction with search results settings, the site owner can manage whether users can see content in search results.

For example, let's say Joe is working on a Request for Proposal (RFP) in Microsoft Office Word and is collaborating with a team of 10 people. His team site has 50 users, all of whom are Site Members. Joe isn't ready for the whole team to view the RFP. Therefore, when he uploads it to the team site, he sets the permissions so that only the team of 10 can view and edit it. Until he grants all 50 people read permissions, only the 10 people who have permission to view the document will see it listed in search results.

Permissions can be applied to lists, sites, views, and Web Parts. Also, permissions can be dependent on other permissions. All of this can affect what the user sees in search results. Therefore, before adding any content to your site, you may want to familiarize yourself with SharePoint's permissions model, the permissions model of your site or organization, or to plan what the permissions model will be for your site.

See also: Default SharePoint Groups in SharePoint

Show content on a site in search results

As a site owner, you can choose whether the content on your site can appear in search results. By default, all site content can appear in search results. The person who's viewing search results must have permission to view the content.

To change this setting, you must have the Manage Permissions permission level. This permission level is included in the " Site Name " Owner group.

  • On the site, select Settings Settings icon. , and then select Site settings . If you don't see Site settings , select Site information , and then select View all site settings .

  • Under Search , click Search and offline availability .

  • In the Indexing Site Content section, under Allow this site to appear in Search results , select Yes to allow the content of the site to appear in search results.

    To prevent the content from appearing in search results, select No .

    Show content from lists or libraries in search results

    As a site owner, you can decide whether items in lists and libraries on your site are included in search results. By default every list and library is set to include all items in search results.

    To change this setting, you must have the Manage Lists permission level. The Designer and " Site Name " Owner groups contain this permission level. When you do not have Manage Lists permissions, the menus described in this procedure aren't available.

  • On the site, find and click the list or library you want to customize.

  • Select Settings Settings icon. , and then select Site settings . If you don't see Site settings , select Site information , and then select View all site settings .

  • Under Site Administration , click Site Libraries and lists .

  • Click an item from the list, for example, Customize "Shared Documents."

  • On the List Settings page, under General Settings , click Advanced settings .

  • In the Search section, under Allow items from this document library to appear in search results , select Yes to include all of the items in the list or library in search result.

    To prevent items from the list or library to appear in search results, select No .

    Show contents of ASPX pages in search results

    You can control whether the content of ASPX pages is included in search results. When you create a site, many content pages are created automatically. For example, default.aspx, allitems.aspx for your Web Part gallery, and several others are automatically created pages. You can also create custom ASPX pages.

    By default, when a Web Part displayed on an ASPX page uses information from a list or library that contains restricted permissions, also known as fine-grained permissions, none of the content in any of the ASPX pages on the site is included in search results. This prevents non-authorized users from viewing content.

    For example, let's say five documents are displayed in a Shared Documents Web Part on a team site with 50 members. One of the documents has restricted permissions; only a few people are allowed to see it. Content is automatically hidden from that site in search results so that the content from that document does not appear when users search. This prevents the content of the ASPX page from unintentionally being exposed to people who are not supposed to see it.

    You have the option of ignoring this setting to display all content in search results regardless of permissions. In this case, all content can appear in the search results, but unauthorized users will not be able to access the actual documents. Another option is to not include any ASPX content in search results, regardless of permissions.

    To change this setting, you must have the Manage Permissions permission level. This permission level is included in the " Site Name " Owner group.

  • On the site, select Settings Settings icon. , and then select Site settings . If you don't see Site settings , select Site information , and then select View all site settings .

  • Under Search , click Search and offline availability .

  • In the Indexing ASPX Page Content section, select one of the following options:

    Do not index Web Parts if this site contains fine-grained permissions
    When permissions of the ASPX page are different from the parent site, no content on the site appears in search results.
    Always index all Web Parts on this site
    Show content of all ASPX pages on the site in search results regardless of permissions.
    Never index any Web Parts on this site
    Hide content of all ASPX pages on the site from search results regardless of permissions.

    Exclude content in columns from search results

    As a site owner you can control whether the content in specific columns in lists or libraries appears in search results. By default, all content is included in search results. This setting is useful when you want to prevent sensitive data from appearing in search results.

    To change this setting, you must have the Manage Permissions permission level. This permission level is included in the "Site Name" Owner group.

  • On the site that contains the list or library, select Settings Settings icon. , and then select Site settings . If you don't see Site settings , select Site information , and then select View all site settings .

  • Under Search , click Searchable columns .

  • In the Excluded Columns from Search Indexing section, under Excluded , check the box next to the Column Name for the column you want to exclude in search results.

    Columns that appear are those that belong to the current site.

    Crawl and re-index a site

    When people search for content on your SharePoint sites, what's in your search index decides what they'll find. The search index contains information from all documents and pages on your site. In SharePoint, content is automatically crawled based on a defined crawl schedule. The crawler picks up content that has changed since the last crawl and updates the index.

    For cases in which the Search schema has changed where a managed property has been added/removed/changed, you will want to specifically request a full re-indexing of a site. See Manually request crawling and re-indexing of a site for more information.

    Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see: https://aka.ms/ContentUserFeedback .

    Submit and view feedback for

    This product
  •