Search for files across multiple SharePoint site collections and their subsites

%3CLINGO-SUB%20id%3D%22lingo-sub-281835%22%20slang%3D%22en-US%22%3ESearch%20for%20files%20across%20multiple%20SharePoint%20site%20collections%20and%20their%20subsites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-281835%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20a%20custom%20.NET%20web%20application%20that%20will%20be%20connecting%20to%20SharePoint%20over%20SharePoint's%20API%20primarily%20to%20store%20documents%20in%20SharePoint%20and%20take%20advantage%20of%20the%20document%20management%20functionality%20like%20check-in%2Fcheck-out%2C%20versioning%2C%20etc.%3CBR%20%2F%3E%3CBR%20%2F%3EWe%20will%20not%20be%20using%20the%20SharePoint%20UI%20at%20all.%26nbsp%3B%20The%20custom%20.NET%20web%20application%20is%20the%20only%20UI%20the%20user%20will%20see%20(SharePoint%20in%20the%20background%20for%20document%20storage).%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EQuestion(s)%3A%20Is%20there%20a%20way%20to%20search%20across%20all%20Site%20Collections%20and%20their%20subsites%3F%26nbsp%3B%20What%20is%20the%20process%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-281835%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPIs%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-281863%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20for%20files%20across%20multiple%20SharePoint%20site%20collections%20and%20their%20subsites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-281863%22%20slang%3D%22en-US%22%3EYes%2C%20you%20can%20use%20the%20search%20rest%20API%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fgeneral-development%2Fsharepoint-search-rest-api-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fgeneral-development%2Fsharepoint-search-rest-api-overview%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3ESearch%20can%20crawl%20information%20from%20your%20entire%20tenant%2C%20so%20you%20shouldn't%20have%20problems%20by%20having%20multiple%20site%20collections%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

We have a custom .NET web application that will be connecting to SharePoint over SharePoint's API primarily to store documents in SharePoint and take advantage of the document management functionality like check-in/check-out, versioning, etc.

We will not be using the SharePoint UI at all.  The custom .NET web application is the only UI the user will see (SharePoint in the background for document storage). 

Question(s): Is there a way to search across all Site Collections and their subsites?  What is the process?

1 Reply
Highlighted
Yes, you can use the search rest API
https://docs.microsoft.com/en-us/sharepoint/dev/general-development/sharepoint-search-rest-api-overv...

Search can crawl information from your entire tenant, so you shouldn't have problems by having multiple site collections