XSLTSearch Umbraco Media Section
I am currently working on a website which has a media gallery in it (functionally similar to JD Smooth Gallery but written in YUI)
Basically I have a gallery of images and some meta data (descriptions, titles) etc defined in the Umbraco Media section.
Document Type

In my Document Type I have a Media Picker which allows you to select the Media. The alias for my field is ‘gallery’.
I have modified XSLTSearch so that it can be configured to treat certain fields as Media and will search the Media section.
XSLTsearch Macro
You will need to add a new field to the XSLTSearch Macro with an alias of “mediaFields” in which a comma separated list of fields containing media can be placed.
Here is a sample macro statement from Umbraco v4:
<umbraco:Macro runat=”server” Alias=”XSLTsearch” macroAlias=”XSLTsearch” source=”-1″ searchFields=”@nodeName,metaKeywords,metaDescription,bodyText,gallery” previewFields=”bodyText,gallery,metaDescription,metaKeywords” mediaFields=”gallery” previewType=”beginning” searchBoxLocation=”bottom” resultsPerPage=”5″ previewChars=”255″ showPageRange=”1″ showOrdinals=”0″ showScores=”0″ showStats=”0″> </umbraco:Macro>You will also need to replace the XSLTsearch macro with the one I have modified (based on the latest v2.7 of the macro). Download the modified XSLTsearch here.
Umbraco GetMedia Bug
Incidentally there appears to be a possible bug/feature in Umbraco if you want to be able to select a Media Folder in the Media Picker. The Umbraco function “umbraco.library:GetMedia” will not work unless you add an Upload field to the Media “Folder” data type, with an alias of “umbracoFile”.