简体   繁体   English

在SharePoint 2013上的特定文件夹中搜索

[英]Search in specific folder on SharePoint 2013

how can I search in specific folder of a list in SharePoint 2013 with the API? 如何使用API​​在SharePoint 2013中搜索列表的特定文件夹?

A lot of tries of me failed :( 我的很多尝试都失败了:(

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

or 要么

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

I need a fulltext search for a specific folder of the DocumentLibList. 我需要对DocumentLibList的特定文件夹进行全文搜索。 Optional with filtering properties of the documents - if possible. 可选,带有文档的过滤属性-如果可能的话。

Thanks in Advance for any idea(s)! 在此先感谢您的任何想法! ;) ;)

Have you tried using an asterisk by the end of the path string? 您是否尝试过在路径字符串末尾使用星号? Also, you could try using the site: filter passing the absolute path to the folder as a value. 另外,您可以尝试使用site:过滤器,将绝对路径作为值传递给文件夹。

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

The SharePoint 2013 Search Query Tool would be helpful in this trial and error process: SharePoint 2013搜索查询工具将在以下反复试验过程中提供帮助:

https://sp2013searchtool.codeplex.com/ https://sp2013searchtool.codeplex.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM