scot hillier scot hillier technical solutions, llc scot@shillier.com

Post on 17-Dec-2015

233 Views

Category:

Documents

9 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Advanced Search-Driven Solutions

Scot HillierScot Hillier Technical Solutions, LLC

scot@shillier.com

Search-Based Applications Search Architecture Keyword Query Syntax Customizing the Query Pipeline Customizing Search Center

Agenda

Search-Driven Applications

DEMO

Search-Driven Applications

SharePoint Foundation 2010 Search

Single site collectionCan’t crawl external sources

Search Server Express Crawls external sourcesSupports federation

Search Server 2010 Enterprise search engine

SharePoint Server 2010 Adds people, taxonomy , and social networking

FAST Search Server 2010 Highly scalable

Search Offerings

Preview Thumbnails for Office documents Metadata Extraction FAST Query Language Role-Based Ranking and Refinement Scalable to over 500 Million items

FAST Search Capabilities

Search Architecture

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

Keyword Query Syntax

DEMO

Using Keyword Query Syntax

Search Web PartsAdvanced Search Box Allows users to create detailed searches against

Managed Properties

Federated Results Displays results from a federated search locationPeople Refinement Panel Presents facets that can be used to refine a people

searchPeople Search Box Allows users to search for people using a keywordPeople Search Core Results Displays the primary result set from a people searchRefinement Panel Presents facets that can be used to refine a searchRelated Queries Presents queries related to the user’s querySearch Action Links Displays links for RSS, alerts, and Windows Explorer Search Best Bets Presents best-bets resultsSearch Box Allows users to enter keyword query searchesSearch Core Results Displays the primary result set from a querySearch Paging Allows a user to page through search resultsSearch Statistics Presents statistics such as the time taken to execute

the querySearch Summary Provides a summary display o the executed queryTop Federated Results Displays top results from a federated location

Modifying the Query Pipelineprotected override System.Xml.XPath.XPathNavigator GetXPathNavigator(string viewPath){ QueryManager queryManager = SharedQueryManager.GetInstance(this.Page).QueryManager;

//Get in pipeline before query is run string taskQueryLanguage = queryManager.UserQuery;

//Get in pipeline after query is run XmlDocument resultsDoc = queryManager.GetResults(queryManager[0]);

//Return Navigator return resultsDoc.CreateNavigator();

}

DEMO

Customizing the Query Pipeline

Custom Tabs Customizing Search Results Display

Customizing Search Center

<?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>

DEMO

Customizing Search Center

Search-Based Applications Search Architecture Keyword Query Syntax Customizing the Query Pipeline Customizing Search Center

Summary

top related