Yahoo! Search BOSS C# Implementation

 

Written by Scott Watermasysk

image

Implementation supports all of the Boss API except for spell checking. This includes Image, News, and Web searches. Search results are returned in three formats: Xml, JSON, and an object set.

Here are a couple examples.

Example 1: Search for “Telligent”:
var result = new WebSearch(“BOSS_ID”).Query(“Telligent”).Get();

Example 2: Search for “Telligent” and limit the results to 5 and get the second page of results.
XElement result = new WebSearch(“BOSS_ID”).Query(“Telligent”).Take(5).Skip(5).GetXML();

Example 3: Search for “Telligent” but limit it to it to a couple of sites:
string json = new WebSearch(“Boss_ID”).Query(“Telligent”).Site(“simpable.com”).Site(“telligent.com”).GetJSON();

Example 4: Search for “Telligent” mentions in the news for the last week.
var result = new NewsSearch(“Boss_ID”).Query(“Telligent”).Age(7).Get();

Example 5: Search for “Telligent” images:
var result = new ImageSearch(“Boss_ID”).Query(“Telligent”).Filter(false).Get

Download Assembly and Source.

Via Yahoo! Search BOSS C# Implementation : Simpable

Yahoo! Search BOSS C# Implementation

 

image

The implementation supports all of the Boss API except for spell checking. This includes Image, News, and Web searches. Search results are returned in three formats: Xml, JSON, and an object set.

Here are a couple examples.

Example 1: Search for “Telligent”:
var result = new WebSearch(“BOSS_ID”).Query(“Telligent”).Get();

Example 2: Search for “Telligent” and limit the results to 5 and get the second page of results.
XElement result = new WebSearch(“BOSS_ID”).Query(“Telligent”).Take(5).Skip(5).GetXML();

Example 3: Search for “Telligent” but limit it to it to a couple of sites:
string json = new WebSearch(“Boss_ID”).Query(“Telligent”).Site(“simpable.com”).Site(“telligent.com”).GetJSON();

Example 4: Search for “Telligent” mentions in the news for the last week.
var result = new NewsSearch(“Boss_ID”).Query(“Telligent”).Age(7).Get();

Example 5: Search for “Telligent” images:
var result = new ImageSearch(“Boss_ID”).Query(“Telligent”).Filter(false).Get();

There is built in support for language, region, content type, etc filters as well.

Download Assembly and Source. Via Yahoo! Search BOSS C# Implementation

Yahoo! Search BOSS (Build your Own Search Service) FAQ’s

 

Abstract

Yahoo! Search BOSS (Build your Own Search Service) is an initiative in Yahoo! Search to open up Yahoo!’s search infrastructure and enable third parties to build revolutionary search products leveraging their own data, content, technology, social graph, or other assets. This release includes Web, News, and Image Search as well as Spelling Suggestions.

FAQ’s

  1. What is BOSS and what can it do for you?

    BOSS (Build your Own Search Service) is an API to tap into Yahoo’s prized search infrastructure. It allows developers, start ups and established consumer Internet companies to leverage the power of Yahoo!

  2. How is BOSS different from other APIs?

    There are plenty of APIs out there in the search space. Some of them give you an iframe or a widget. The current Search API is designed for rapid development of search applications and mash ups. BOSS is an extension of that concept but for the first time developers can tap into our search infrastructure and build applications for commercial use without restrictions around presentation or ordering of results. You can take BOSS results, blend in your own secret sauce, and build a search engine of your own design, all without required brand attribution.

  3. Which search content can I find through BOSS?

    With this first release of BOSS developers can fetch search content for Web, News, Image, and Spelling Suggestions. Other search verticals and data sources are coming soon.

FAQ’s

Yahoo YUI CSS Library

First of all, include the external stylesheet: <link rel=”stylesheet” type=”text/css” href=”http://yui.yahooapis.com/2.5.2/build/reset-fonts-grids/reset-fonts-grids.css”>

  • CSS Reset (neutralizes browser CSS styles)
  • CSS Base (applies consistent style foundation for common elements)
  • CSS Fonts (foundation for typography and font-sizing)
  • CSS Grids (more than 1,000 CSS-driven wireframes in a 4KB file)
  • Tutorial Video on CSS Library