SharePoint 2013 REST搜索API不在特定站点内进行搜索 [英] SharePoint 2013 REST search API is not searching within a particular site

查看:86
本文介绍了SharePoint 2013 REST搜索API不在特定站点内进行搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 当我们在SharePoint 2013中使用REST API进行搜索时,API将在整个SharePoint场中进行搜索,但不限于请求URL中请求的特定站点。

  When we are searching using REST API in SharePoint 2013, the API is searching in entire SharePoint farm, but not restricted to a particular site to which are requesting with in the requesting URL.

下面是我们正在使用的REST搜索查询:

Below is the REST search query we are using:

http:// server:port / _api / search / query?querytext ='*'& ; selectproperties ='Path,Url,Title,filename,contentclass,'& startrow = 0& rowlimit = 50"

http://server:port/_api/search/query?querytext='*'&selectproperties='Path,Url,Title,filename,contentclass,'&startrow=0&rowlimit=50"

请让我们知道这种行为及其解决方案。

Please let us know of this behavior and the solution for this.

推荐答案

我会说这是设计的。如果您希望在特定网站内搜索,您可以使用特定结果源,缩小到该特定网站,或将SPSiteUrl:siteurl添加到wuery文本。
I'd say that this is by design. If you wish to search within the particular website only you can either use a specific result source, narrowed to that particular site, or add SPSiteUrl:siteurl to the wuery text.


这篇关于SharePoint 2013 REST搜索API不在特定站点内进行搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆