SharePoint Search API is dead, how to reach it in Microsoft Graph API

https://msdn.microsoft.com/en-us/office/office365/howto/query-office-graph-using-gql-with-search-rest-api
According to the document, the Sharepoint Search API will be discontinued on August 31, 2017. I used

xx.sharepoint.com/_api/search/query?querytext='data'&startrow=11

for "All" serach. and for people added a parameter &sourceid='b09a7990-05ea-4af9-81ef-edfab16c4e31'

with the above url. But how can I achieve the same result in

graph.microsoft.com/v1.0/

In the Microsoft GUI, they only mentioned finding SharePoint sites. https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/sharepoint can anyone point me to the correct doc to search everything in SharePoint using the graph API token with parameters.

+3


source to share


1 answer


What's discontinued is the use of GQL in your call. For example:

https://<tenant_address>/_api/search/query?querytext='QUERY'&properties='GraphQuery:and(ACTOR(ME\,action\:1020)'

      



Pay attention to which is part of the URL. GraphQuery

I don't think regular searches will be affected.

+4


source







All Articles