ArticlesChannelsTags
Microsoft Dev Blogs
Oct 30, 2023

Transition to Microsoft Graph Search endpoint for OneDrive and SharePoint

apigraphmicrosoftonedrivesearch
viewOriginal View
Transition to Microsoft Graph Search endpoint for OneDrive and SharePoint

Microsoft is transitioning to a unified search solution called Microsoft Graph Search API, which covers all of Microsoft 365. This means that the existing OneDrive and SharePoint search APIs will no longer be improved or updated. Although there is no end-of-life date for these APIs, developers are encouraged to transition their applications to the Microsoft Graph Search API.

The Microsoft Search API provides a unified search endpoint that allows querying of data in the Microsoft cloud, including Outlook mailboxes, OneDrive, and SharePoint. It is based on entities like Drive, DriveItem, List, ListItem, and Site, which are used to craft queries. Microsoft Search API offers features such as multi-geo support, summary for each item in the response, querying data beyond OneDrive (e.g., searching Outlook messages and calendar events), searching multiple entity types in one query, powerful querying capabilities using KQL, refining results using aggregations, spelling correction, and the ability to add content from external sources.

In terms of common queries, you can use the Microsoft Graph Search API to search for sites in SharePoint. This can be done at the tenant level or within a specific site and its subsites. Drive search can be done for both OneDrive for Business and non-OneDrive drives, with slightly different queries. DriveItem search allows searching for driveItems within a specific folder of a drive. Sorting and filtering can also be accomplished using the Microsoft Search API.

To see examples of these queries and learn more about using the Microsoft Graph Search API, refer to the provided documentation.

    See more related articles

    Loading...๐Ÿง˜๐Ÿผโ€โ™€๏ธ