Display Bookmarks results at hub site search

Dinesh Negi 86 Reputation points
2022-04-11T08:22:32.1+00:00

Hi,

I am trying to customize SharePoint modern search at Hub level, and trying to find the way to display Bookmark and Q&A results at hub site level search.

Can anyone provide help me on this if it possible.

Thanks,
Dinesh

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,041 questions
{count} votes

Accepted answer
  1. CaseyYang-MSFT 10,326 Reputation points
    2022-04-12T09:40:39.66+00:00

    Hi @Dinesh Negi ,

    You could use following PnP PowerShell to set hub site search.

    Connect-PnPOnline -Url https://<<yourFullsiteurl>> -UseWebLogin  
    
    $web = Get-PnPWeb  
    $web.SearchScope = 2 # see below for possible SearchScope values  
    $web.Update()  
    Invoke-PnPQuery  
    

    - 0 = default, let SharePoint decide

    • 1 = All sites in the organization
    • 2 = All sites in this Hub
    • 3 = Just this site

    And you could create Bookmarks in Microsoft 365 admin center > Settings > Search & intelligence > Answers > Bookmarks

    1. Add bookmarks
    2. Import SharePoint results
    3. Add default bookmarks and suggested bookmarks
    4. Import bookmarks
    5. Publish or review recommended bookmarks

    For Reference: Manage bookmarks


    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.


1 additional answer

Sort by: Most helpful
  1. Dinesh Negi 86 Reputation points
    2022-04-14T08:01:47.117+00:00

    I got the below answer from MS .

    Bookmark support for additional scopes is being worked on, but we don’t have a release date yet. Until that time, use Query Rules at hub and site levels.

    Thanks For your help.

    0 comments No comments