[英]Sharepoint Search Results Scopes
Currently I have a search set up on our Sharepoint 2010 server. 目前,我在Sharepoint 2010服务器上进行了搜索设置。 The search works fine on the first try however after one search (aka the results page) the scope is defaulted to "this site:search".
搜索在第一次尝试时工作正常但是在一次搜索(也就是结果页面)之后,范围默认为“此站点:搜索”。
I would like to modify the scope options on this page however I cannot seem to locate where to do so? 我想修改此页面上的范围选项,但我似乎无法找到在哪里这样做?
I would like the same scopes to display on both my results page and original search page. 我希望在结果页面和原始搜索页面上显示相同的范围。 In summary the problem is the search is set up as a separate site and when the results page is displayed the only scope option is this site which esentially has no content.
总之,问题是搜索被设置为单独的站点,并且当显示结果页面时,唯一的范围选项是该站点,其实际上没有内容。 So an added bonus would be to remove the this site option from the page.
因此,额外的好处是从页面中删除此站点选项。
For now anyways the search has to stay as a separate site. 目前无论如何搜索必须作为一个单独的站点保留。 Thanks in advance.
提前致谢。
UPDATE In order to allow for additional scopes in the results page you must go to the site settings (as admin) > Search Settings > Site Collection Search Center and Enable Custom Scopes 更新为了在结果页面中允许其他范围,您必须转到站点设置(作为管理员)>搜索设置>网站集搜索中心并启用自定义范围
I still need to know how to default to all site or hide this site search. 我仍然需要知道如何默认所有网站或隐藏此网站搜索。
I too had the similar issue,in order to solve go to site settings->search scopes and then click displaygroups->drop down serach for 我也有类似的问题,为了解决去网站设置 - >搜索范围然后点击displaygroups-> drop down serach for
Click on Drop down serach for,a form opens where you can define serach scopes and at the bottm you can set the defuat search scope.Hope this helps 点击下拉serach,打开一个表格,你可以在那里定义搜索范围,在底部你可以设置defuat搜索范围。希望这有助于
Below are the steps I had to take: 以下是我必须采取的步骤:
I had the same problem when I used the Basic Search Site template, but not when I used the Enterprise Search Site template, which allowed me to edit Web Parts on the search AND the results page to show the scope dropdown. 我使用基本搜索站点模板时遇到了同样的问题,但是当我使用企业搜索站点模板时,我没有这样做,这使我可以在搜索上编辑Web部件,并在结果页面上显示范围下拉列表。
To remove "This Site" from the scope list, edit both search box Web Parts and choose "Show, do not include contextual scopes." 要从范围列表中删除“此站点”,请编辑两个搜索框Web部件,然后选择“显示,不包括上下文范围”。
Also, you will need to enable Publishing Infrastructure feature on the site collection before you can create a search site using the Enterprise Search Site template. 此外,在使用企业级搜索网站模板创建搜索网站之前,您需要在网站集上启用“发布基础结构”功能。
I also changed the master page on the search site to minimal.master to improve the layout. 我还将搜索网站上的母版页面更改为minimal.master以改进布局。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.