【发布时间】:2022-01-26 11:21:18
【问题描述】:
老会员,好久没发帖了。正在构建一个外联网,但遇到了一个令人沮丧的愚蠢问题。第一次使用 SharePoint Online 作为外部(匿名)用户的文档存储库。为此,使用 Azure 许可,根据访问级别将文档拆分到 SharePoint 上的存储库中。最重要的是,我试图在突出显示的内容 Web 部件中显示它们,但我无法按位置和类型对它们进行排序。我在每个存储库中都有一个自定义列来定义它们是什么类型,但是当我尝试将 AND 部分添加到 KQL 时它不起作用。此外,互联网似乎大量缺乏 KQL 的实际文档。
(
path:https://domain.sharepoint.com/sites/example/Level%201%20Resources/
OR
path:https://domain.sharepoint.com/sites/example/Level%202%20Resources/
OR
path:https://domain.sharepoint.com/sites/example/Level%203%20Resources/
OR
path:https://domain.sharepoint.com/sites/example/Level%204%20Resources/
OR
path:https://domain.sharepoint.com/sites/example/Level%205%20Resources/
OR
path:https://domain.sharepoint.com/sites/example/Level%206%20Resources/
AND
DocType:"Articles"
)
上面将简单地从这些位置提取所有文档并忽略 AND 语句。我已经尝试重命名它以调用从源中提取的自定义列标识符,但这也不起作用。
我能找到的唯一真实文档是:Here
这似乎没有解决基于自定义列标签的过滤问题。
编辑:重新格式化以使用下面从多个位置提取所有文档,但嵌套部分仍然无法正常工作
path:(
"https://domain.sharepoint.com/sites/example/Level%201%20Resources/"
OR
"https://domain.sharepoint.com/sites/example/Level%202%20Resources/"
OR
"https://domain.sharepoint.com/sites/example/Level%203%20Resources/"
OR
"https://domain.sharepoint.com/sites/example/Level%204%20Resources/"
OR
"https://domain.sharepoint.com/sites/example/Level%205%20Resources/"
OR
"https://domain.sharepoint.com/sites/example/Level%206%20Resources/"
)
【问题讨论】: