SharePoint Search Query Tool I have found out that some old "ghost" instances of my site collections exist on some servers in a big farm. When I use the search functionality in SharePoint I get search results from both these old site collections and the proper site collections. The GUIDs (
SiteId) of the old site collections and the proper site collections differ, but the GUIDs (
WebId) of the sites in both collections are identical.
This is SharePoint 2016 on-premise and I do not have access to the server. I have site collection admin permissions.
All I know about these "ghost" site collections are their site collection GUID:s. I wonder how I can find out more about these "ghosts", so that I can explain the issue to a server admin far away in another country? Maybe I am able to browse to the URLs and remove the old site collections myself if I know where they are? But I am afraid there may be redirects involved also.
I have found a method in CSOM that seems to accept GUIDs (
Site.OpenWebById), but I do not know what to specify as context, so I do not know how to write the code. Or are there other ways?
This problem is really making the search functionality and my web parts using search completely useless, because nobody can rely on the search results.