Vector Databases 101 - An introduction to the world of Vector Databases
Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011
1. Sponsors
Gold
Developing a Custom
FAST Search Server 2010
Silver
for SharePoint Solution
Bronze Sezai Komur
SharePoint Solutions Architect
CSG
2. 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
3. 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
4. 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
9. 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
12. 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
14. 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
17. 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
18. 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
20. 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
21. 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
23. SP Saturday Slide Template Example
QUESTION AND ANSWER
Email Sezai: sharepointsezai@gmail.com
Melbourne 2011
24. Related Links
• Sezai’s Blog - FAST Spatial Search Toolkit v1.0
http://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 Integration
http://msdn.microsoft.com/en-us/library/cc645076(v=vs.95).aspx
Melbourne 2011
25. Sponsors
Gold
Thanks for listening!
Remember to submit your feedback so
Silver
you can go into the raffle draw at the
end of the day! And don’t forget that
Bronze
you have to be at the draw to claim your
prizes!
Notes de l'éditeur
Warm up search center, Spatial search center & bigmap,vs 2010 SharePoint Central Admin – FAST Search managed properties
Run through functionalityShow source SharePoint Data and SQL Server SpatialShow Managed Properties and Mappings to Crawled Properties - http://sezspoint:12000/ Show custom site def custom site definition.SQL for spatial dataselect top 100 pointname, Pointfrom Points where PointName like '%Data Set 1%'union allselect top 100 pointname, Pointfrom Points where PointName like 'wyoming%'union allselect top 100 pointname, Pointfrom Points where PointName like 'siberia%'union allselect datasetname, boundingfrom datasets