Forum Discussion
SharePoint Search
- Nov 21, 2017
Just to complete this issue. I've created a PowerShell script that touches all the list items in my site collections, so that search will pick up these items. Problem resolved for me! Not sure how this customer got into this situation though.
The script can be found below:
$cred = Get-Credential -Message "Password" -UserName admin@mytenant.onmicrosoft.com Connect-PnPOnline -Url https://mytenant-admin.sharepoint.com -Credentials $cred $sites = Get-PnPTenantSite | where { $_.Url -like "https://mytenant.sharepoint.com/teams*"} foreach ( $site in $sites) { Connect-PnPOnline -Url $site.Url -Credentials $cred $web = Get-PnPWeb $list = Get-PnPList -Web $web | Where { $_.Title -eq "MyList" } $listItem = Get-PnPListItem -List $list $listItem.Update(); $web.Context.Load($listItem); $web.Context.ExecuteQuery(); $listItem }
Hey
Mikael,
I am having a heck of a time retrieving search results (i.e., data from lists) from my communication site landing page. If I were to go to site contents, and plop something into the search box, then all results come back. My gut is telling me this may have something to do with managed/crawled properties. Finally, the drop-down selections (this site, everything, people, etc) do not appear in the search box on the landing/Home page as well. They do, however, appear when accessing a library, site contents, etc. I have admin privilieges, but have not been able to solve the problem. Any ideas?
Thanks much,
Paul
Paul Martello was there a question in there? :) As for scoped search in the search box, this is not possible and there is a user-voice out there to allow us to pick what that box searches in.
My gut feel is that the magic behind the modern search box puts some filters on what is actually returned, where as the classic box does not.