Meet the new BOSS…

<p>The goal of any search engine is to find the most relevant information for a user. <a href="https://developer.yahoo.com/boss">Yahoo! BOSS</a> recently announced <a href="http://ysearchblog.com/2009/04/09/boss-update-delicious-advanced-language-and-news-capabilities/">new features to the popular search API</a>: <a href="https://developer.yahoo.com/search/boss/boss_guide/supp_regions_lang.html">advanced language capabilities</a>, <a href="https://developer.yahoo.com/search/boss/boss_guide/News_Search.html#optional_args_news">news sorting by timeliness</a>, and data from <a href="http://delicious.com/">Delicious</a>, a social bookmarking service. </p>

<p><strong>Delicious</strong> allows users to save their favorite web sites, add tags for easier discovery, and share them with friends and others. This creates a directory that's an honest reflection of what sites are important, informational, and entertaining. Yahoo! BOSS + Delicious gives you more control over relevancy. Let's look at a couple possible examples.</p>

<h3>Mobile Search </h3>

<p>The Internet is moving rapidly to the small screen of a mobile phone. These users need to find the right answer faster and with fewer clicks. Data from Delicious will help us spotlight the key results. </p>

<p>Let's assume we want to show 10 results to a user. We make a request to Yahoo! BOSS for 50 results that are enhanced with Delicious data. Normally we would display the top 10 results, based on the assumption they were the most relevant. However, we can now re-rank the results to correlate with the items most often saved on Delicious. An item that might have normally appeared in the fourth position in results, but has the highest Delicious value, can now be displayed as the first item. We've easily allowed the collective wisdom of Delicious users to highlight better content in search results. </p>

<h3>Related Content for a Blog</h3>

<p>Yahoo! BOSS can be used for much more than building a full-featured search engine. Let's build a single module for your blog to dynamically generate a list of related content for each blog post. </p>

<p>We'll use two BOSS features to build this. First, we will use the query filter for finding related content. Then we will re-rank the data to highlight the most popular items on Delicious.</p>

<h4>Using Query Filters</h4>

<p>BOSS allows you to use most of the <a href="http://help.yahoo.com/l/us/yahoo/search/basics/basics-04.html">common query filters available in an advanced search</a>. This list includes:</p>

<ul>

<li>inurl (search for the term in a web site's url)</li>

<li>intitle (search for the term in a web sites's page title)</li>

<li>related (search for web sites that are similar to the target)</li>

<li>site (only search within a single domain) </li>

</ul>

<p>Let's assume we are on the page of a single blog post: <a href="http://ysearchblog.com/2009/04/09/boss-update-delicious-advanced-language-and-news-capabilities">BOSS Update: Delicious, Advanced Language, and News Capabilities</a>. We will request the related content for this site: <br><pre><samp>http://boss.yahooapis.com/ysearch/web/v1/related:http://ysearchblog.com/2009/04/09/boss-update-delicious-advanced-language-and-news-capabilities/?appid=your-app-id&format=xml&start=0&count=15&view=keyterms%2Cdelicious_saves</samp></pre>.</p>

<p>This gives us a list of 15 related articles. They may be about the same subject, by the same author, or possibly related via inbound links. </p>

<p>Notice that the items in the following sample result with the most Delicious saves are not necessarily at the top of the list. We can now make our module more interesting by pushing the article with eight saves to the top of the list. </p>

<pre><code>

<?xml version="1.0" encoding="UTF-8"?>

<ysearchresponse xmlns="http://www.inktomi.com/" responsecode="200">

<resultset_web count="12" start="0" totalhits="12" deephits="49">

<result>

...

<delicious_saves/>

<title>WebProNews - Yahoo - powered by FeedBurner</title>

<url>http://feeds2.feedburner.com/Yahoo-News-WebProNews</url>

</result>

<result>

<delicious_saves/>

<title><![CDATA[<b>BOSS</b> <b>Update</b>: <b>Delicious</b>, <b>Advanced</b> <b>Language</b>, <b>and</b> <b>News</b> <b>Capabilities</b> - SEO <b>...</b>]]></title>

<url>http://seolight.co.uk/seo-news/more-10502,17.php</url>

</result>

<result>

<delicious_saves/>

<title><![CDATA[Top <b>News</b> - WebProNews - powered by FeedBurner]]></title>

<url>http://feeds2.feedburner.com/WebpronewsTopNewsRssFeed</url>

</result>

<result>

<delicious_saves>1</delicious_saves>

<dispurl><![CDATA[www.<b>ramskill.net</b>]]></dispurl>

<title>Mark Ramskill - Feeds I Read</title>

<url>http://www.ramskill.net/</url>

</result>

<result>

<delicious_saves>2</delicious_saves>

<title><![CDATA[Yahoo! Search Blog " Blog Archive " <b>Delicious</b> Bookmarks, Firefox and you]]></title>

<url>http://ysearchblog.com/de/</url>

</result>

<result>

<delicious_saves>8</delicious_saves>

<title>Yahoo! Search Blog " Blog Archive " Y!Q: Adding Context to Search</title>

<url>http://www.ysearchblog.com/archives/000074.html</url>

</result>

</resultset_web>

</ysearchresponse></code></pre>

<h3>Delicious Tags vs. BOSS Keyterms </h3>

<p>BOSS already offered keyterms for each result; these are keywords Yahoo!'s search index has assigned to a page. It is a finite list that allows for better categorization. Delicious tags add a human element to the results. Delicious users may associate their bookmarks with any keyterm they think is relevant. An article on Notre Dame de Paris may include the keyvalues of Paris, cathedral, and gothic. Delicious users may add more personalized content: magnificent, recentlyrestored, gargoylephotos... </p>

<p>Here's a sample result for Notre Dame:</p>

<pre><code>

<result>

<delicious_toptags>

<tags>

<tag>

<name>paris</name>

<count>12</count>

</tag>

<tag>

<name>france</name>

<count>7</count>

</tag>

<tag>

<name>travel</name>

<count>7</count>

</tag>

<tag>

<name>architecture</name>

<count>6</count>

</tag>

<tag>

<name>cathedral</name>

<count>4</count>

</tag>

<tag>

<name>catedral</name>

<count>2</count>

</tag>

<tag>

<name>europe</name>

<count>2</count>

</tag>

<tag>

<name>francia</name>

<count>2</count>

</tag>

<tag>

<name>gothic</name>

<count>2</count>

</tag>

<tag>

<name>notre-dame</name>

<count>2</count>

</tag>

</tags>

</delicious_toptags>

<keyterms>

<terms>

<term>Cathédrale Notre Dame de Paris</term>

</terms>

</keyterms>

<titl>Cathédral Notre Dame de Paris</title>

<url>http://www.notredamedeparis.fr/</url>

</result>

</code></pre>

<p>You can use these keyterms and tags to build related searches, add search suggestions, re-rank the results, and much more. Delicious tags give new perspectives and can increase the relevancy of your results. The Yahoo! BOSS result set is a tremendous source of information. You now have access to the Yahoo! Search Index, the <a href="http://ysearchblog.com/2009/02/11/boss-update-open-monetization-pricing-structured-data-and-more/">RDF and Microformats defined by the site author</a>, and Delicious data defined by users. </p>

<p>Ted DRAKE<br>

Yahoo! France</p>

<p>  </p>

<p>  </p>