SearchMonkey presentation for the Yahoo! Open Hack 2008 in Sunnyvale. SearchMonkey Data layer concepts and application design
Display documents directly in Yahoo! Search. Add code to indicate to Yahoo! that an embedded document exists on your page, and when we next crawl your site, we'll take care of the rest. From your markup, we’ll be able to extract structured data from your site and render it automatically in an enhanced result in search results.
See "Details" section above
Copy this code and replace the example text with your data to read Flash documents in Yahoo! Search.
<object width="512" height="296" rel="media:presentation" resource="http://example.com/document_object.swf" xmlns:media="http://search.yahoo.com/searchmonkey/media/"> <param name="movie" value="http://example.com/document_object.swf" /> <embed src="http://example.com/document_object.swf" type="application/x-shockwave-flash" width="512" height="296"></embed> </object>
NOTE: Your embed code might vary.
If your document is a spreadsheet or a presentation, use media:spreadsheet or media:presentation. If your document does not fall into either of these categories, use media:document.
<object width="512" height="296" rel="media:presentation" resource="http://example.com/document_object.swf" xmlns:media="http://search.yahoo.com/searchmonkey/media/" xmlns:dc="http://purl.org/dc/terms/"> <param name="movie" value="http://example.com/document_object.swf"/> <embed src="http://example.com/document_object.swf" type="application/x-shockwave-flash" width="512" height="296"></embed> <a rel="media:thumbnail" href="http://example.com/thumbnail_preview.jpg" /> <a rel="dc:license" href="http://example.com/terms_of_service.html" /> <span property="dc:creator" content="Chris Lindsey" /> <span property="dc:description" content="Learn how to use SearchMonkey to customize search engine results" /> <span property="media:title" content="SearchMonkey Tutorial" /> <span property="media:width" content="512" /> <span property="media:height" content="296" /> <span property="media:type" content="application/x-shockwave-flash" /> <span property="media:region" content="us" /> <span property="media:region" content="uk" /> </object>
You may include even more data than this, such as user information and review information. This metadata will be available in SearchMonkey and Yahoo! Search BOSS for further use. For more information, refer to the RDFa specification or the RDFa wiki.
NOTE: To validate your markup with RDFa attributes, use this W3C DOCTYPE: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<y:adjunct xmlns:y="http://search.yahoo.com/datarss/" version="1.0" name="YOURID" > <y:item rel="dc:subject" resource="http://example.com/document_object.swf"> <y:type typeof="media:Presentation" resource="http://example.com/document_object.swf"> <y:item rel="media:thumbnail media:image" resource="http://example.com/thumbnail_preview.jpg"/> <y:item rel="dc:license" resource="http://example.com/terms_of_service.html" /> <y:meta property="dc:title media:title">SearchMonkey Tutorial</y:meta> <y:meta property="dc:description media:description">Learn how to use SearchMonkey to customize search engine results</y:meta> <y:meta property="dc:creator">Chris Lindsey</y:meta> <y:meta property="media:height" datatype="xsd:integer">358</y:meta> <y:meta property="media:width" datatype="xsd:integer">576</y:meta> <y:meta property="media:region">us</y:meta> <y:meta property="media:region">uk</y:meta> <y:meta property="media:type dc:type">application/x-shockwave-flash</y:meta> </y:type> </y:item> </y:adjunct>
Test your markup to make sure your enhanced result will appear.
This can take up to a few weeks depending on your site.
Copyright © 2009 Yahoo! Inc. All rights reserved. Copyright | Privacy Policy | Terms of Service
Help us continue to improve the Yahoo! Developer Network: Send Your Suggestions