【发布时间】:2021-04-20 11:35:59
【问题描述】:
在多地理环境中,我想执行 SharePoint REST API 搜索并将其限制在某些地理位置,仅如 in the microsoft multi geo documentation 所述。我已经尝试过 GET 和 POST 请求,但我的 MultiGeoSearchConfiguration 中的所有设置都被忽略了,我总是从所有地理位置获取完整的结果列表。
我在这里做错了什么?我现在知道在哪里可以找到可能是缺少的 sourceId 吗?
curl --location -g --request GET 'https://<mydev>.sharepoint.com/_api/search/query?querytext=%27test%27&ClientType=%27cb991e32-6ce4-4e98-a91b-4eea9a874962%27&Properties=%27EnableMultiGeoSearch:true,%20MultiGeoSearchConfiguration:[{DataLocation\:%22EUR%22\,Endpoint\:%22https\://<mydev>EUR.sharepoint.com%22}]%27' --header 'Accept: application/json' --header 'Authorization: Bearer ...'
(
【问题讨论】:
标签: sharepoint sharepoint-api sharepoint-search sharepoint-rest-api