0

在多地理环境中,我想执行 SharePoint REST API 搜索并将其限制为仅在 microsoft 多地理文档中描述的某些地理位置。我已经尝试过 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 ...'

(当然,<mydev> 换成了我真正的共享点)

4

1 回答 1

0

在您的 API 请求中,您有EnableMultiGeoSearch:true并且根据提供的文档,它提到如果此参数设置为 true,则“查询应分散到多地理位置租户的其他地理位置的索引” ,您是否尝试过将此值设置为 false?

于 2021-01-15T19:36:06.620 回答