0

如何使用API​​在SharePoint 2013中的特定文件夹中搜索列表?在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的特定文件夹的全文搜索与可选的文件过滤特性 - 如果可能

在此先感谢您的任何想法!)

回答

0

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

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

在SharePoint 2013的搜索查询工具会在这个试错过程有所帮助:

https://sp2013searchtool.codeplex.com/

相关问题