简体   繁体   English

SharePoint 2010-搜索框Web部件和搜索结果页自定义

[英]SharePoint 2010 - Search Box Web Part and Search Results Page Customization

Would someone be willing to offer me some assistance with customizing the search results page and the search box web part properties. 有人愿意在定制搜索结果页面和搜索框Web部件属性方面为我提供一些帮助。

First problem: Search Box Properties 第一个问题:搜索框属性

When I add an additional query term (eg. fileextension="xml") the search runs as expected but the refinement panel dissapears on the search results page. 当我添加其他查询词(例如fileextension =“ xml”)时,搜索将按预期运行,但优化面板在搜索结果页面上消失。 I don't want it to dissapear! 我不希望它消失! I just want certain filters to be pre-applied. 我只是希望预先应用某些过滤器。

Second Problem: Search Results Page 第二个问题:搜索结果页面

How do I customize the way results are displayed. 如何自定义结果的显示方式。 For instance, I would like to add different refinement options to the refinement panel. 例如,我想向优化面板添加不同的优化选项。 I would also like to change what information is displayed under each individual result. 我还想更改在每个结果下显示的信息。 Currently it seems to show a summary of the content, followed by the author and sometimes the date. 当前,它似乎显示了内容的摘要,后面是作者,有时还有日期。 I'd like to change this. 我想改变这个。 How??? 怎么样???

Any help greatly appreciated. 任何帮助,不胜感激。

The results part you need to update the XSLT, You can do this via one of the web part properties. 您需要更新XSLT的结果部件。您可以通过Web部件属性之一来执行此操作。 You will also need to make sure that the fields you want to put in to the results are included in your columns(Also a web part property) 您还需要确保要放入结果中的字段包含在您的列中(还有一个Web部件属性)

Check this out https://littletalk.wordpress.com/2011/08/26/customizing-search-core-result-xslt-in-sharepoint-2010/ 看看这个https://littletalk.wordpress.com/2011/08/26/customizing-search-core-result-xslt-in-sharepoint-2010/

Refinement options are based on Your crawled properties. 优化选项基于您的已爬网属性。 Check this out 看一下这个

http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2010/03/15/get-to-know-the-refinement-web-part-in-sharepoint-2010-enterprise-search.aspx http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2010/03/15/get-to-know-the-refinement-web-part-in-sharepoint-2010-enterprise-search.aspx

Not sure as to why your refinement panel is disappearing, Check to see if the URL changes dramatically when you add your fileextension="xml" to the web part property, it may be that this addition is changing the URL so much the refinement panel is loaded or can't load but don't hold me to this 不确定为什么精简面板消失了,请检查将fileextension =“ xml”添加到Web部件属性时URL是否发生了巨大变化,可能是由于此添加改变了URL,以至于精简面板加载或无法加载,但不要抱我这个

cheers to the 欢呼

Truez 特鲁兹

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

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