Create a Search Scope for a Sharepoint 2010 List or Library

Go to Site Actions > Site Settings (make sure you’re in the root site), and click “Search scopes”.

Click “New Scope” to create a new scope to load in a sub-page of the site.

Nothing really needs to be set on this screen except the title. If you want this to be a default scope that shows in the normal scope dropdown, make sure and select the “Search Dropdown” box. Otherwise, everything can be set in your custom page.

In the next screen you’ll see your newly created scope under “Unused Scopes”. There are no rules attached to this scope yet, so let’s go create some. Click “Add rules”.

If you want this search scope to query a specific list (for instance, I wanted it to troll through the “newlist” list), enter the address of the list in the “folder” textbox. Also, if you check “require” it will designate that only this list will be searched.

I’m not exactly sure how often the scopes update, but it seems to be about every 15 minutes. I assume it depends on how your server is setup.

Next, create a new page. In this page, add some webparts. Add the following 3 webparts:

  • Search Box
  • Search Core Results
  • Search Paging


Search Box
When you add the search box webpart, the only thing I would change is the page which displays the result. I want to display the results on this page, not on the typical search page. So I just put the address of the page I’m on. That way it will send the search results to this page’s results webpart.

Search Core Results
Here is where you need to input the scope. Edit the webpart and look for the “location properties” section. Under “Scope” type the name of your scope (human readable is fine).

Click OK, reload the page, do a search, and now the search results should only show items in your list! Tada!

时间: 2024-12-28 01:09:31

Create a Search Scope for a Sharepoint 2010 List or Library的相关文章

Backup and restore of FAST Search for SharePoint 2010

一个同事问我一个问题: 如果FAST Search for SharePoint 2010被full restore到了一个之前的时间点, 那么当FAST Search重新开始一个增量爬网的时候, 会发生什么? FAST Search会查看内容数据库并发现上一次爬网的记录并为新item或更改的item制作索引么? FAST Search会发现索引与现在内容的不一致么? 还是说它直接会再来一次full crawl?   Some Basics =================== Fast Se

VSTO学习笔记(四)从SharePoint 2010中下载文件

原文:VSTO学习笔记(四)从SharePoint 2010中下载文件 上一次我们开发了一个简单的64位COM加载项,虽然功能很简单,但是包括了开发一个64位COM加载项的大部分过程.本次我们来给COM加载项添加一些功能:从SharePoint 2010的文档库中下载一个Excel文档到本地. 示例代码下载 本系列所有示例代码均在 Visual Studio 2010 Ultimate RC + Office 2010 Professional Plus Beta x64 上测试通过. 1.首先

创建SharePoint 2010 Timer Job

好久没有写博客了.最近在使用SharePoint 2010中Timer Job的功能,有了一点心得,分享一下. 我个人认为SharePoint Timer Job和Windows Service或者是Schedule很相似,就是enable之后可以定时执行.开发的步骤如下: 1.   在VS中新建一个Class,这个Class继承Microsoft.SharePoint.Administration.SPJobDefinition,实现的代码如下: using System; using Sys

SharePoint 2010 之 数据库架构

1.SharePoint Foundation 2010 数据库 1)配置数据库 配置:SharePoint_Config 配置数据库包含有关 SharePoint 数据库.Internet Information Services (IIS) 网站.Web 应用程序.受信任的解决方案.Web 部件包.网站模板以及特定于 SharePoint 2010 产品的 Web 应用程序和服务器场设置(例如默认配额设置和被禁止的文件类型)的数据. 在仅服务器场配置备份或还原过程中,不会保存许多配置设置,尤

SharePoint 2010版本表

描述 SharePoint Foundation KB SharePoint Server 2010 KB FAST Search Server 版本号 June 2014 CU 2880975 2880972   14.0.7125.5002 April 2014 CU 2878270 2878250 2863932 14.0.7121.5004 February 2014 CU 2863938 2863913   14.0.7116.5000 December 2013 CU 2849990

SharePoint 2010/2013 如何查看现有网站是使用什么网站模板新建的

本文讲述 SharePoint 2010/2013 如何查看现有网站是使用什么网站模板新建的. 相信很多做SharePoint 都有遇到这个问题,其实这个很简单: 打开现有网站,按F12调处IE调试器,在HTML 中搜索g_wsaSiteTemplateId: 如上图中,STS#0就是当前SharePoint 站点对应的网站模板ID, 如果HTML 中搜索不到g_wsaSiteTemplateId,可以尝试在JS控制台输入g_wsaSiteTemplateId并回车: SharePoint  2

在SharePoint 2010中部署RBS

分类:             SharePoint              2015-01-28 10:12     62人阅读     评论(0)     收藏     举报 一.RBS(Remote BLOB Storage)简介 在SharePoint的大部分企业应用案例中,SharePoint都是要承担着非常繁重的文件管理工作,这些文件类型包括了Word文档,Excel文档甚至是数据量庞大的音频.视频文件.对于这些文件,SharePoint默认都是将它们以BLOB的数据形式存储在内容

在SharePoint 2010系统中安装RBS FILESTREAM Provider

这两天在研究怎么写一个RBS Provider,可惜文档实在是很缺乏,基本上除了一篇Spec之外,就只有SQL产品组写的一个sample了.之后如果研究有结果,再整理成文章吧,现在先讲讲怎么直接安装并使用RBS FILESTREAM Provider.     -------------- 胡言乱语与正文的分隔线 --------------------     如果使用SharePoint 2007作为文档管理平台,它很让人诟病的一点就是,SharePoint 2007将文件本身直接存储在SQ

SharePoint 2010 隐藏我的网站、我的档案链接

SharePoint 2010 隐藏我的网站.我的档案链接 前两篇博客发出去之后,想了想,仍然有我的网站.我的档案这两个链接没有发生变化.说明它们没有在Welcome.ascx页面中引用.那它们究竟是怎么出现在Personal Actions 个人操作中呢?如何隐藏掉,或者删除呢? 最后才发现,原来我找错了控件,根本与Welcome.ascx无关.而内部的机制是这样的. 首先,有个服务器控件SocialNavigationControl,它呈现在SocialData.ascx中.其文件位置与We