I have customized the ALL vertical in Microsoft Search and mentioned to result only from a single site.

Vishnoo Kumar Jayashankar 0 Reputation points Microsoft Employee
2023-06-20T09:31:50.4233333+00:00

I have edited the ALL vertical in Microsoft Search and limited the scope to result only from a root site by configuring the KQL as Path:https://tenantname.sharepoint.com/. However, the result still shows from all the sites in the organization. how to fix this?

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

2 answers

Sort by: Most helpful
  1. Ling Zhou_MSFT 23,620 Reputation points Microsoft External Staff
    2023-06-21T05:30:54.2633333+00:00

    Hi @Vishnoo Kumar,

    Thank you for posting in the community.

    I tried to create a vertical at SharePoint level and site level and specified the result scope, but my result scope settings took effect, and I didn't have the problem you described.

    Since we can't reproduce your situation, we need to narrow down the problem and try some things.

    1, Please check your KQL to see if there is a problem with the site URL.

    2, Please try to recreate this vertical. If you created the vertical at SharePoint level, then you can try to create the same search at site level. If you created the vertical at site level, then you can try to create the same search at another site. Check if the problem still exists.

    Here is the link about how to create a vertical: Manage search verticals.

    3, If the problem persists, you can try asking your colleague to try to create the vertical on his computer and then check if the problem exists.

    It will take a while for the vertical to take effect, so please wait a few hours before you see the vertical you created.

    Thank you for your time and efforts in advance. Feel free to contact to me if you have any concerns.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Ling Zhou_MSFT 23,620 Reputation points Microsoft External Staff
    2023-06-27T07:36:08.98+00:00

    Hi @Vishnoo Kumar,

    Please accept my sincere apology for the delay. Because the test of this issue may take a few hours to take effect.

    I changed the "ALL" vertical in organization level, but it didn't work. Then I found that the "ALL" vertical in the site level seems to be shared with the "ALL" vertical in the organization level, as they check out the same results.

    Maybe we can't modify the "ALL" vertical because it will affect the whole SharePoint and the ALL can't be disabled. This is by design of SharePoint.

    For custom verticals, this statement is valid.

    {searchTerms} (path: https://XXXXXX.sharepoint.com/sites/siteName)
    

    I tested a custom vertical in my side:

    First, there are two sites (Karley0626_1, Karley0626_2) that contain "TestList06" List.

    User's image

    Second, I create a custom vertical called "Only0626_1". Limit search to content in Karley0626_1.

    image (3)

    Third, the query returns only the content in Karley0626_1.

    User's image

    Perhaps you could consider customizing a custom vertical to limit the scope to result.

    Thank you for your kind understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.