160 likes | 295 Views
Advanced Search-Driven Solutions. Scot Hillier Scot Hillier Technical Solutions, LLC scot@shillier.com. Agenda. Search-Based Applications Search Architecture Keyword Query Syntax Customizing the Query Pipeline Customizing Search Center. Search-Driven Applications.
E N D
Advanced Search-Driven Solutions Scot Hillier Scot Hillier Technical Solutions, LLC scot@shillier.com
Agenda • Search-Based Applications • Search Architecture • Keyword Query Syntax • Customizing the Query Pipeline • Customizing Search Center
FAST Search Capabilities • Preview Thumbnails for Office documents • Metadata Extraction • FAST Query Language • Role-Based Ranking and Refinement • Scalable to over 500 Million items
Keyword Query Syntax • Managed Properties • Use any property in keyword query • Must-Know Properties • isDocument (0 or 1) • ContentClass • STS_Site, STS_Web, STS_List, STS_ListItem, STS_List_{Type}, STS_ListItem_{Type} • Type can be DocumentLibrary, Events, Tasks, Announcements, DiscussionBoard, Contacts, Links, PictureLibrary
Modifying the Query Pipeline protected override System.Xml.XPath.XPathNavigator GetXPathNavigator(string viewPath) { QueryManagerqueryManager = SharedQueryManager.GetInstance(this.Page).QueryManager; //Get in pipeline before query is run string taskQueryLanguage = queryManager.UserQuery; //Get in pipeline after query is run XmlDocumentresultsDoc = queryManager.GetResults(queryManager[0]); //Return Navigator return resultsDoc.CreateNavigator(); }
Customizing Search Center • Custom Tabs • Customizing Search Results Display <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" version="1.0“ encoding="utf-8" indent="yes"/> <xsl:template match="/"> <xmp><xsl:copy-of select="*"/></xmp> </xsl:template> </xsl:stylesheet>
Summary • Search-Based Applications • Search Architecture • Keyword Query Syntax • Customizing the Query Pipeline • Customizing Search Center