Programming and Customizing Search in (MOSS) 2007
Programming and Customizing Search in (MOSS) 2007
Session Prerequisites
Power User and/or Administration Skills MOSS 2007 Search Features .NET Development XML and XSLT Basic Skills
Search Engine
Web Sites
SharePoint Sites
Network Shares User Profiles Business Data Lotus Notes
Search DB
Property Store
Index Engine
...
Search Administration OM
Content
Schema Scopes ServerContext SearchContext
Keyword
Ranking Propagation LogViewer
Microsoft.Office.Server.Search.dll
Microsoft.Office.Server.dll
Demo
Programming with the Search Administration Object Model
Create and provision custom page layouts Add custom page layouts to list of available page layouts for the Search Center
Demo
Custom Search Center Page Layouts
Connected with each other not with SharePoint Web Part connection infrastructure but with Query ID property
PeopleSearchBoxEx (Microsoft.SharePoint.Portal.dll)
Scope picker Properties to include in search Additional query terms to append Url for people search results page
PeopleCoreResultsWebPart
Inherits from CoreResultsWebPart
CoreResultsWebPart class is also used for Search Action Links (with different XSLT and property settings)
SearchPagingWebPart
Labels, settings and possibly images for paging Query ID connects it to the core results Web Part
SearchSummaryWebPart
Summary info mode Query ID connects it to the core results Web Part
HighConfidenceWebPart
Display keywords and best bets Query ID connects it to the core results Web Part
Demo
Customizing and Programming with the Search Web Parts
XSLT
Rendering of search results is driven by XSLT XSL and XSLLink property Base class is DataFormWebPart
Demo
Custom XSLT for the Search Core Results Web Part
Custom Tabs
Tabs are stored as items in lists
List for search pages List for search results pages
Demo
Custom Tabs for the Search Center
Query Engine
Query Syntax
Keyword syntax
New for building keyword queries Use it for simple queries
SQL syntax
Supports full-text searching Extension of the SQL query syntax Use it for complex queries
Demo
Custom Search Box Web Part
Demo
Remote searching
Custom Trimmers
Do something (typically trimming) before the results are shown to the user
Security trimming of search results Trim based on business/context information
ISecurityTrimmer Interface
Registration via stsadm and the RegisterSecurityTrimmer option
Demo
Building and Deploying Custom Security Trimmer
Resources
MS Press Books
Inside MOSS 2007 (Patrick Tisseghem) Inside Indexing and Search Engine: MOSS 2007 (Patrick Tisseghem and Lars Fastrup)
learn support connect subscribe
MSDN Library
User Groups
Newsgroups
E-learning Product Evaluations Videos Webcasts V-labs
Blogs MVPs
Certification Chats
Visit MSDN in the ATE Pavilion and get a FREE 180-day trial of MS Visual Studio Team System!
Resources
Technical Communities, Webcasts, Blogs, Chats & User Groups http://www.microsoft.com/communities/default.mspx Microsoft Learning and Certification http://www.microsoft.com/learning/default.mspx
learn support
connect subscribe
MSDN Library
User Groups
Newsgroups
E-learning Product Evaluations Videos Webcasts V-labs
Blogs MVPs
Certification Chats
Visit MSDN in the ATE Pavilion and get a FREE 180-day trial of MS Visual Studio Team System!
Complete your evaluation on the My Event pages of the website at the CommNet or the Feedback Terminals to win!
All attendees who submit a session feedback form within 12 hours after the session ends will have the chance to win the very latest HTC 'Touch' smartphone complete with Windows Mobile 6 Professional
2007 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.