在SharePoint 2013

时间:2015-10-16 21:51:29

标签: sharepoint sharepoint-2013 sharepoint-api sharepoint-search

如何使用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的特定文件夹。可选,可以过滤文档的属性 - 如果可能的话。

预先感谢任何想法! ;)

1 个答案:

答案 0 :(得分:0)

您是否尝试在路径字符串末尾使用星号?此外,您可以尝试使用site:filter将绝对路径作为值传递给文件夹。

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

SharePoint 2013搜索查询工具在此试错过程中会有所帮助:

https://sp2013searchtool.codeplex.com/

相关问题