0
在SharePoint擴大縮略圖試圖讓SharePoint搜索縮略圖通過微軟圖形
這將返回正確的搜索結果:
https://graph.microsoft.com/v1.0/drives/{SHAREPOINT_DRIVE_ID}/root/search(q='{QUERY}')
但這:
https://graph.microsoft.com/v1.0/drives/{SHAREPOINT_DRIVE_ID}/root/search(q='{QUERY}')?expand=thumbnails(select=large)
返回:
{"error":{"code":"-1, Microsoft.SharePoint.Client.UnknownError","message":"Unknown Error","innerError":{"request-id":"69bc5cdf-0f4a-4d60-9c3c-513983dd8e0b","date":"2016-08-04T17:50:11"}}},"status":500,"statusText":"Internal Server Error"}
的documentation明確規定:This method supports the OData Query Parameters to help customize the response.
該文檔明確指出:'此方法支持OData查詢參數以幫助自定義響應。': http://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/item_search –
搜索目前不允許您展開縮略圖集合。看起來像一個小姐,因爲縮略圖可以更容易地向用戶顯示搜索結果。您仍然可以使用其他OData查詢參數,例如$ select來形成響應。我會記錄一個錯誤來更新文檔,使其更加清晰。 –