Sharepoint 2013 OOTB搜索框

时间:2015-10-13 06:27:03

标签: sharepoint sharepoint-2013

有没有办法可以自定义默认共享点搜索框以获取特定内容类型的结果。

<SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox" />

以上标记中的某些属性,我可以在其中输入“内容类型”以限制仅从此内容类型中搜索。

提前致谢

1 个答案:

答案 0 :(得分:0)

您可能更容易在搜索结果Webpart上配置查询,如本文所述:

https://support.office.com/en-us/article/Change-settings-for-the-Search-Results-Web-Part-40ff85b3-bc5e-4230-b1dd-f088188e487e#__define_the_query

搜索结果Webpart具有查询生成器,您可以在其中输入以下内容:

{searchTerms} ContentType=yourcontenttype