developing a custom fast search server 2010 for sharepoint solution - sharepoint saturday melbourne...

25
Sponsors Gold Silver Bronze Developing a Custom FAST Search Server 2010 for SharePoint Solution Sezai Komur SharePoint Solutions Architect CSG

Upload: sezai-komur

Post on 24-May-2015

5.571 views

Category:

Technology


3 download

DESCRIPTION

Overview of FAST Spatial Search Toolkit for FAST Search Server 2010 for SharePoint.

TRANSCRIPT

Page 1: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

SponsorsGold

Silver

Bronze

Developing a Custom FAST Search Server 2010 for SharePoint Solution

Sezai KomurSharePoint Solutions Architect

CSG

Page 2: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

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

Page 3: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

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.

Page 4: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

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

Page 5: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

Melbourne 2011

Page 6: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

Melbourne 2011

Page 7: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

Melbourne 2011

Page 8: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

Melbourne 2011

FAST SPATIAL SEARCH CENTERDemo

Page 9: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

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.

Page 10: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

Melbourne 2011

Page 11: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

Melbourne 2011

VISUAL STUDIO SOLUTION & CUSTOM SITE DEFINITION OVERVIEW

Code Demo

Page 12: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

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.

Page 13: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

Melbourne 2011

CUSTOM SEARCHBOXEX & SEARCH JAVASCRIPT

Code Demo

Page 14: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

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”

Page 16: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

Melbourne 2011

CUSTOM CORERESULTSWEBPARTCode Demo

Page 17: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

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.

Page 18: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

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.

Page 19: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

Melbourne 2011

SILVERLIGHT INTEGRATION WITH HTML & JAVASCRIPT

Code Demo

Page 20: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

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.

Page 21: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

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

Page 22: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

Melbourne 2011

CALLING THE SEARCH WEB SERVICES FROM SILVERLIGHT

Code Demo

Page 23: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

Melbourne 2011

QUESTION AND ANSWERSP Saturday Slide Template Example

Email Sezai: [email protected]

Page 24: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

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

Page 25: Developing a Custom FAST Search Server 2010 for SharePoint Solution - SharePoint Saturday Melbourne 2011

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