In my session at SharePoint Saturday Ozarks I promised a blog with links to additional resources and the code snippets used in my demo. I will also hopefully eventually have a screencast of my demo completed and hosted at http://endusersharepoint.com. Until then, however, here is the additional information I promised during my session.

Code Snippets

<!-- Dump search results to raw xml for use as datasource in SPD -->
<?xml version="1.0" encoding="UTF-8"?>
<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>

<!-- Example QueryEX packet -->
<QueryPacket xmlns="urn:Microsoft.Search.Query">
    <Query>
        <SupportedFormats><Format>urn:Microsoft.Search.Response.Document:Document</Format></SupportedFormats>
        <Context>
            <QueryText type="STRING" language="en-us">contenttype:"Sales Brochure" scope:"Sales Brochures"</QueryText>
        </Context>
        <Range>
                <StartAt>1</StartAt>
                <Count>10</Count>
        </Range>
        <EnableStemming>true</EnableStemming>
        <TrimDuplicates>true</TrimDuplicates>
        <IgnoreAllNoiseQuery>true</IgnoreAllNoiseQuery>
        <ImplicitAndBehavior>true</ImplicitAndBehavior>
        <IncludeRelevanceResults>true</IncludeRelevanceResults>
        <IncludeSpecialTermResults>true</IncludeSpecialTermResults>
        <IncludeHighConfidenceResults>true</IncludeHighConfidenceResults>
    </Query>
</QueryPacket>

<!-- QueryEx packet formatted for Data View Web Part datasource -->
<QueryPacket xmlns="urn:Microsoft.Search.Query"><Query><SupportedFormats><Format>urn:Microsoft.Search.Response.Document:Document</Format></SupportedFormats><Context><QueryText type="STRING" language="en-us">contenttype:"Sales Brochure" scope:"Sales Brochures"</QueryText></Context><Range><StartAt>1</StartAt><Count>10</Count></Range><EnableStemming>true</EnableStemming><TrimDuplicates>true</TrimDuplicates><IgnoreAllNoiseQuery>true</IgnoreAllNoiseQuery><ImplicitAndBehavior>true</ImplicitAndBehavior><IncludeRelevanceResults>true</IncludeRelevanceResults><IncludeSpecialTermResults>true</IncludeSpecialTermResults><IncludeHighConfidenceResults>true</IncludeHighConfidenceResults></Query></QueryPacket>
<!-- Show file icon in Core Results Web Part -->
<img align="absmiddle" alt="Type" border="0" src="/_layouts/images/{ddwrt:MapToIcon('', ddwrt:GetFileExtension(string(url)))}"/>
<!-- Show file icon in Data View Web Part -->
<img align="absmiddle" alt="Type" border="0" src="/_layouts/images/{ddwrt:MapToIcon('', ddwrt:GetFileExtension(string(Path)))}"/>

Links

 

Slide Deck