码迷,mamicode.com
首页 > 其他好文 > 详细

SharePoint Search之(四)Promoted Results—让搜索结果置顶

时间:2014-11-12 09:24:38      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:sharepoint   search   promoted results   

当使用搜索引擎的时候,用户希望匹配的结果能够在第一条显示。

 bubuko.com,布布扣

在SharePoint2013里也提供了类似的功能Promoted Results。这个功能在SharePoint 2010里叫best bets,在SharePoint 2013里变了名称,但是功能并没有什么改变。

bubuko.com,布布扣

在SharePoint 2013 里,要设置Promoted Results, 根据你的权限,可以在不同的地方设置。

如果是Search Services Application的管理员,可以在CentralAdministration中,找到Search Service Application,管理页面,点击Query Rules.

另外两个级分别是在Site Collection Settings->Site Query Rules 和 SiteActions->Query Rules.

 bubuko.com,布布扣

在不同的级别设置,作用域也不一样。比如在site 级别设置的Promoted Results, 在其他Site Collection以及本site collection的其他site是看不见的。但是在Search Service Application设置的,会在所有关联了这个SearchServices Application的Web Applications中有效。

 

点击Query Rules, 输入Rule Name,在Context部分,输入匹配的关键字,如果有多个,用分号分隔。

bubuko.com,布布扣

站在Actions部分,点击Add Promoted Results。在弹出页面输入目标地址的信息。如果选中Render the URL as a banner instead of as a hyperlink,那么在显示结果的时候,SharePoint会把目标结果的网页显示出来。

 bubuko.com,布布扣

信息填好之后,点击保存,在父页面点击保存。

 

这时候再搜索,就会把刚才设置的URL放在第一位显示了。

bubuko.com,布布扣

 

Question:如果分别在Search ServiceApplication级别,Site collection级别,Site级别都设置Promoted Results 会是什么效果呢?

Answer: 效果会叠加。比如在Site级别搜索,SearchService Application级别,Site collection级别符合条件的Promoted Result 都会置顶显示。

SharePoint Search之(四)Promoted Results—让搜索结果置顶

标签:sharepoint   search   promoted results   

原文地址:http://blog.csdn.net/spfarm/article/details/41022161

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!