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/

相關問題