160 likes | 245 Views
Branding SharePoint Search Results. Cory Peters – Solutions Architect Eastridge Technology www.corypeters.net. Why do we need search?. Cost of gathering the information can outweigh it’s value Employees need access to internal information in order to make good, timely decisions
E N D
Branding SharePoint Search Results Cory Peters – Solutions Architect Eastridge Technology www.corypeters.net
Why do we need search? • Cost of gathering the information can outweigh it’s value • Employees need access to internal information in order to make good, timely decisions • Fill in the knowledge gaps
What do we expect? • Requires confidence in the search engine • SharePoint 2007 • 100% better on all queries • 500% better on common queries • New ways to visualize search results Compared to SharePoint 2003
With SharePoint we have control • Document Libraries with known metadata schemes • Picture Libraries • Wikis • Blogs • Calendar Events • Tasks, etc.
Managed Properties Site / List Column Incremental Crawl Create Managed Property Crawled Property Full Crawl Managed Property No Data Managed Property With Data
Search Core Results Web Part • Selected Columns • Raw Output • Data View XSL
Raw Output <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <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>
Best Practices • Use “Include values from a single crawled property based on the order specified” when creating your Managed Properties • Break your main logic up into an xsl:choose statement and use an xsl:when test for each ContentClass • Store any supporting files in either the 12 hive or the Style Library to avoid permission issues • Use the ows_ version of the crawled property • Keep any CSS / Javascript in global files using master pages