Create a Search Scope for a Sharepoint 2010 List or Library
2012-04-05 17:06
801 查看
Update: I’ve just recorded a screencast tutorial on creating a search scope: click here
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!
Find something in this article or on my blog you like...but not entirely sure how to do it yourself? Outsource! ben@bentedder.com
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!
Find something in this article or on my blog you like...but not entirely sure how to do it yourself? Outsource! ben@bentedder.com
相关文章推荐
- Create a Search Scope for a Sharepoint 2010 List or Library
- How to: Add SharePoint 2010 Search Web Parts to Web Part Gallery for Upgraded Site Collections
- How to set Item Level Permission for SharePoint 2007 (MOSS/WSS) List/Document Library Programmatically
- add a custom action to a SharePoint list actions menu for a specific list or content type
- FAST Search for SharePoint 和 SharePoint Server 2010 Search 的不同(1)
- Backup and restore of FAST Search for SharePoint 2010
- FAST Search for SharePoint 和 SharePoint Server 2010 Search 的不同(2)
- SharePoint 2010: Create a Custom Page Layout for a Publishing Site using SharePoint Designer
- FAST Search for SharePoint 和 SharePoint Server 2010 Search 的不同(3)
- Create a Custom NewForm.aspx for a SharePoint List
- Limit 1 or n choices for the Multiple Selection List Box (InfoPath + SharePoint + JavaScript)
- Create custom Task List and Forms in SharePoint 2010 with Visual Studio 2012
- Example for updating list in Sharepoint 2010
- 实战部署FAST Search Server 2010 for SharePoint
- 实战部署 FAST Search Server 2010 for SharePoint
- 实战部署FAST Search Server 2010 for SharePoint
- FAST Search Server 2010 for SharePoint SP1 说明
- FAST Search Server 2010 for SharePoint
- FAST SEARCH FOR SHAREPOINT 2010 特点
- 以脱机模式运行系统必备组件安装程序 (FAST Search Server 2010 for SharePoint)