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
- Add bookmarks
- Import SharePoint results
- Add default bookmarks and suggested bookmarks
- Import bookmarks
- 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.