110 likes | 219 Views
Cheap and Easy wildcard search w/ moss. Becky Isserman, B&R Business Solutions http://www.mosslover.com. Pre-Requisites. More Pre-requisites…. Turn on Search Create an SSP Add Content Indexes Create Scopes Add Properties Add Content Crawl Content Indexes. Query Object Model.
E N D
Cheap and Easy wildcard search w/ moss Becky Isserman, B&R Business Solutions http://www.mosslover.com
More Pre-requisites… • Turn on Search • Create an SSP • Add Content Indexes • Create Scopes • Add Properties • Add Content • Crawl Content Indexes
Query Object Model • Looks like SQL • Example:SELECT <columns>FROM <content source>WHERE <conditions>ORDER BY<columns>
Wildcard Search Options (LIKE) • % • SELECT FROM ‘All Sites’WHERE Author LIKE ‘%oleman’
Wildcard Search Options (LIKE) • _ • SELECT FROM ‘All Sites’WHERE Author LIKE ‘Jade _oleman’
Wildcard Search Options (LIKE) • [ ] or [ ^ ] • SELECT FROM ‘All Sites’WHERE Author LIKE ‘Jade [CcKk]olemen’ • SELECT FROM ‘All Sites’WHERE Author LIKE ‘Jade [^C]oleman’
Wildcard Search Options (CONTAINS) • * • SELECT FROM ‘All Sites’WHERE CONTAINS(‘Coleman*’)
Demo • User Control/SMART Part • Webpart Conversion
Reference • “Inside the Index and Search Engines: Microsoft Office SharePoint Server 2007” by Patrick Tisseghem and Lars Fastrup • Code Samples from Book:http://www.microsoft.com/mspress/companion/9780735625358 • SMART Part: http://www.codeplex.com/smartpart • STSDev: http://www.codeplex.com/stsdev
Information • E-mail: rebecca.isserman@gmail.com • Blog: http://www.mosslover.com • Comic: http://www.sharepointcomic.com