developing a custom fast search server 2010 for sharepoint solution - sharepoint saturday melbourne...
DESCRIPTION
Overview of FAST Spatial Search Toolkit for FAST Search Server 2010 for SharePoint.TRANSCRIPT
SponsorsGold
Silver
Bronze
Developing a Custom FAST Search Server 2010 for SharePoint Solution
Sezai KomurSharePoint Solutions Architect
CSG
Melbourne 2011
Agenda
• Overview of customisation options.• Demo of the FAST Spatial Search Center.• Solution Overview.– Index Schema Design– Custom FAST Search Center Site Definition– Custom SearchBoxEx– Custom CoreResultsWebPart– Integrating a Silverlight into the Search Center– Calling Search Web Services from Silverlight
Melbourne 2011
Custom Solution Options with FS4SP
• Develop custom web parts that call the search object model (not covered).
• Customising a FAST Search Center site– Configuring existing web parts– Subclassing ootb web parts.– Developing new web parts.
• Developing a custom application that queries the search web services.
Melbourne 2011
Index Schema Design
• The search index is your data layer.• Create Managed Properties that you plan to
use for your search solution.• Map the managed properties to crawled
properties• You can map similar properties across
multiple systems to common managed properties
Melbourne 2011
Melbourne 2011
Melbourne 2011
Melbourne 2011
FAST SPATIAL SEARCH CENTERDemo
Melbourne 2011
Creating a Custom Site Definition
• Copy the OOTB site definition you want to base your site definition on.
• Replace existing web part references in onet.xml with your own web part references.
• Include any custom files– .xap, pages based on new page layouts etc.
• Include changes to web part properties, such as coreresultswebpart XSLT.
Melbourne 2011
Melbourne 2011
VISUAL STUDIO SOLUTION & CUSTOM SITE DEFINITION OVERVIEW
Code Demo
Melbourne 2011
Overriding GoSearch Javascript
• Redirecting to results.aspx is performed with Javascript.
• If your search solution includes extra search parameters ensure these are passed in as query string parameters.
• To change the behaviour of GoSearch Javascript, create a web part that inherits from SearchBoxEx to override Javascript.
Melbourne 2011
CUSTOM SEARCHBOXEX & SEARCH JAVASCRIPT
Code Demo
Melbourne 2011
Custom CoreResultsWebPart
• CoreResultsWebPart does the querying work and results rendering via XSLT. Not straight forward to override it with custom FQL
• Develop a custom CoreResultsDatasource and CoreResultsDatasourceView class.
• Enable FASTSearchRuntime.EnableFQL = true in CoreResultsDatasourceView to allow
this.FixedQuery = “Your FQL”
Melbourne 2011
http://neganov.blogspot.com/2011/01/extending-coreresultswebpart-to-handle.html
Melbourne 2011
CUSTOM CORERESULTSWEBPARTCode Demo
Melbourne 2011
Integrating Silverlight into a FAST Search Center
• Silverlight can read data out of HTML Elements on the page, and update HTML on the page.
• Silverlight methods can be called from Javascript run on the page.
Melbourne 2011
HTML Bridge: Interaction Between HTML and Managed Code
http://msdn.microsoft.com/en-us/library/cc645076(v=vs.95).aspx
In Silverlight, the HTML Bridge is an integrated set of types and methods that enable you to do the following:• Expose complete managed types to JavaScript for scripting.• Expose individual methods of managed types to JavaScript for scripting.• Pass managed types as parameters to JavaScript functions and objects.• Return managed types from JavaScript.• Assign managed types as event handlers, which are callable from JavaScript.• Call JavaScript event handlers from managed types.• Control various security aspects of your Silverlight-based application.• In addition, the HTML Bridge provides managed containers for Document
Object Model (DOM) elements such as window, document, and standard HTML elements.
Melbourne 2011
SILVERLIGHT INTEGRATION WITH HTML & JAVASCRIPT
Code Demo
Melbourne 2011
Calling the Search Web Services from A Silverlight Application
• The FAST Search Center might not provide the search experience you’re after.
• You can implement a more custom search experience by calling the Search Web Services.
Melbourne 2011
Calling the Search Web Services from A Silverlight Application
• The FAST Search Center might not provide the search experience you’re after.
• You can implement a more custom search experience by calling the Search Web Services at /_vti_bin/Search.asmx
• Using the Query Web Service http://msdn.microsoft.com/en-us/library/ee872313.aspx
Melbourne 2011
CALLING THE SEARCH WEB SERVICES FROM SILVERLIGHT
Code Demo
Melbourne 2011
Related Links• Sezai’s Blog - FAST Spatial Search Toolkit v1.0http://sharepoint-sezai-moss-2007.blogspot.com/2011/10/fast-spatial-search-toolkit-v10-search.html
• Extending CoreResultsWebPart to Handle Search Queries Written in FAST Query Language
http://neganov.blogspot.com/2011/01/extending-coreresultswebpart-to-handle.html
• Using the Query Web Service http://msdn.microsoft.com/en-us/library/ee872313.aspx
• HTML Bridge – Silverlight, HTML & Javascript Integrationhttp://msdn.microsoft.com/en-us/library/cc645076(v=vs.95).aspx
Thanks for listening!
Remember to submit your feedback so you can go into the raffle draw at the end of the day! And don’t forget that
you have to be at the draw to claim your prizes!
SponsorsGold
Silver
Bronze