0

如何使用 API 在 SharePoint 2013 中列表的特定文件夹中进行搜索?

我的很多尝试都失败了:(

http://localhost/_api/search/query?querytext='*B*+AND+List:DocumentLibList'&clienttype='ContentSearchRegular'

或者

http://localhost/_api/search/query?querytext='*B*+AND+path:"http://localhost/sites/MainSite/DevSite/DocumentLibList"'&clienttype='ContentSearchRegular'

我需要对 DocumentLibList 的特定文件夹进行全文搜索。可选的过滤文档属性 - 如果可能的话。

提前感谢您的任何想法!;)

4

1 回答 1

0

您是否尝试在路径字符串的末尾使用星号?此外,您可以尝试使用该站点:过滤器将文件夹的绝对路径作为值传递。

http://localhost/_api/search/query?querytext='*B*+site:"http://yourserver/yourlibrary/yourfolder"'

SharePoint 2013 搜索查询工具将有助于此试错过程:

https://sp2013searchtool.codeplex.com/

于 2015-10-17T12:28:34.817 回答