November 29, 2006 at 10:47 am
Needle in a Haystack

Under the Hood

The search engine that powers both CBC.ca and radio-canada.ca is a Google Search Appliance (GSA). As such you can use most of the tools and search terms on the commercial site on the CBC.ca search engine.

Query Hacking
Let’s start off with some basics. The search engine by default “OR”s your search terms. That means that if you type in “blue house” (without the quotes) the search engine will return hits that have the word “blue” or “house”. If you would like to force the search engine to “AND” your results then you need to wrap your search term in quotations. This will result in only the exact phrase being matched and returned in your results.

If you would like to omit certain terms from your results, you can prefix them with the negative sign (“-”). If you are looking for information on bass fish (and not related to music at all) you can remove all references to “music” by using “bass -music” (without the quotes) as your search query.

You can restrict your search results to a specific file type by using the “filetype:” query prefix. If you are looking for a specific PDF on our site you can use “filetype:pdf” in your query. “budget filetype:pdf” (Without the quotes) will return all of the pdfs that have the word “budget” in them, on our site. The GSA can index over 100 types of files including binary files such as jpgs, tiffs, psds, and flash content. However, we do not crawl and index these types of files. Only “text” content is indexed (this includes, pdf, doc, xls).

The “site:” query prefix allows you to restrict your query to a specific section of the site. Some of you might remember a while ago that we used to allow the user to restrict their search query to news,sports, or arts, by using the tabs at the top of the search results. That has been gone for a while, but you can still achieve the same thing. For example: You want to find sports stories about Tod Bertuzzi and not stories about his home life in BC. You can use the following query to return only sports stories “Bertuzzi site:www.cbc.ca/sports”. This will return 679 instead of 1380 results (if you did not restrict your search to Sports stories). On the other hand if you want to only view stories from BC you would do: “Bertuzzi site:www.cbc.ca/canada/british-columbia”

The “site:” query prefix is handy for searching our newsletters. If you want to search the Quirks and Quarks newsletter for “cats” you can use “cats site:interact.cbc.ca/pipermail/quirks” (without the quotes). If you want to search all of our newsletters amend the “site:” prefix to only read “site:interact.cbc.ca/pipermail”

It is important to not put on a trailing slash when you are using the site: query prefix unless of course you want to restrict your search results to that *exact* url and not be recursive.

URL Hacking

Now on to the more advanced stuff. This can only be done by hacking the URL directly. Once you have your search results page you can further change the results by adding items to the results url.

If you would like to get your search results in XML, you need to change two parameters:
1. Remove the proxystylesheet key (proxystylesheet=CBC)
2. Change the “output” key from output=xml_no_dtd to output=xml

For Fun, you can also get the search results using Radio-Canada’s template:
1. Change the proxystylesheet from proxystylesheet=CBC to proxystylesheet=RadioCanada

There are two options for sorting your search results. “By Date” just sorts the results, regardless of relevancy, in chronological order. “By Relevance” orders the results in an order that the GSA will think is the most relevant. You can combine the two, that is sorting by date and relevancy, by editing the sort key:
1. Change the sort key to sort=date:D:S:d1

If you are looking for French content on CBC.ca (and not radio-canada.ca) you can add the “lr” key to the url:
1. Tack on &lr=lang_fr to your search page url.

Ultimately, if you are looking for English pages on Radio-Canada’s site, you can add “&lr=lang_en” to their search results page url.

Things We’re Working On.

Here are some of the “neat” things we’re working on:

Current weather conditions: You can get the current weather conditions in the search results by suffixing your query with “weather”. For example, you can get Toronto’s latest weather conditions by typing in “toronto weather” as your search query. Right now this is only works for a select number of cities.

Latest News: If you use a query that is contained in one of today’s news stories, you will see a link to that news story at the very top of your results highlighted in a blue background.

Feel free to pose any questions about our search engine or suggest any features you’d like to see in a comment. If you would like more technical detail on how to hack our search results you can find them on the Google API page.

Email This Post
  CBC.ca web site, Under the Hood

Comments are closed.

  • Buy Cheap discount vitamins online Now WorldWide Shipping. Online Prices For discount vitamins online!
  • Buy Cheap buy anti depression drugs on line Online Best Drugstore. Internet Prices For buy anti depression drugs on line!
  • Buy Cheapest buy diet pills online Now Best Prices. The Largest Internet Pharmacy.
  • Buy Cheap anxiety pills online Now 100% Satisfaction Guaranteed. Pharmacy Store.
  • Buy Cheapest over the counter anti depressants Online Low Prices. Drugs, Health And Beauty.
  • Buy Cheap levitra doses Now Cheap Pharmacy Online. Top Online Pharmacy.
  • Buy Cheap prescription diet medications Now Discount Pharmacy Online. Guaranteed Shipping.
  • Buy remedies for headaches Online Without Prescription. Low Prices. Best Drugstore.
  • Buy Cheap cod ultram Online Pharmacy Store. Cheap Prescription Drugs.
  • Buy Cheap ambien where to buy Now Cheap Prescription Drugs. WorldWide Shipping.
  • Buy Cheap viagra online stores Now Cheap Pharmacy Online. Free Viagra Pills!
  • Buy Cheap free weight loss diets Online Best Drugstore. Cheap Prescription Drugs.
  • Buy Cheapest top diet pill Online Pharmacy Store. Cheap Online Pharmacy.
  • Buy Cheap anti depression drugs Online The Largest Internet Pharmacy. Best Online.
  • Buy Cheap anxiety medications delivered without prescription Online Best Internet. 24/Online Pharmacy.
  • Buy Cheap erythromycin dosage Now No Prescription Online Pharmacy. Low Prices.
  • Buy Cheap generic form of viagra Now Best Online. Safe And Secure Payment System.
  • Buy Cheap canada buy depression drugs online Now Pharmacy Store. Pharmacy At The Best Price!
  • Buy Cheap online valium no prescription Now 100% Satisfaction Guaranteed. Best Online.
  • Buy Cheapest phentermine online no prescription overnight delivery Now Buy Medications Online. WorldWide Shipping.
  • Buy Cheap viagra free trials Now Top Online Pharmacy. Cheap Online Pharmacy.
  • Buy Cheapest no prescription medications Now Best Online. Discount Online Pharmacy.
  • Buy Cheap treatment for parasites in humans Now Best Online. Top Online Pharmacy Supplier.
  • Buy Cheapest discount propecia Online Low Prices. Special Prices For discount propecia!
  • Buy Cheap lexapro generic Online Online Medical Shop. WorldWide Shipping.
  • Buy Cheap buy viagra online pharmacy Online Top Online Pharmacy. Free Viagra Pills!
  • Buy Cheap prescription medicines Now Safe And Secure Payment System. Best Online.
  • Buy Cheap sleep disorder medication Now WorldWide Shipping. Top Online Pharmacy.
  • Buy Cheap sildenafil citrate viagra Now Drugs, Health And Beauty. Pharmacy Store.
  • home remedy weight loss Online Without Prescription Best Online. WorldWide Shipping.
  • Buy Cheap non-prescription diuretic Online Buy Medications Online. Best Internet.
  • Buy Cheap buyimg viagra in australia Now Drugs, Health And Beauty. Guaranteed Shipping.
  • Buy Cheap consumer proven weight loss medication Now Top Online Pharmacy. Cheap Online Pharmacy.
  • Buy buying clomid Without Prescription Doctor. Best Internet. Best Prices.
  • Buy Cheapest treatment for pinworms Online Best Online. Online Medical Shop.
  • Buy Cheapest buy levitra no prescription Online WorldWide Shipping. Best Internet.
  • Buy Cheapest buy diazepam cheap Now Pharmacy Store. No Prescription Needed.
  • Buy Cheapest generic cheap viagra Now No Prescription Needed. Best Drugstore.
  • Buy Cheapest us xanax Online No Prescription Needed. Best Online.
  • Buy Cheap new treatment for obesity Online Online Medical Shop. Pharmacy Store.
  • Buy Cheapest phentermine capsules Online Top Online Pharmacy. Free Viagra Pills!
  • Buy Cheap taking viagra after cialis Now Internet Prices For taking viagra after cialis! Best Prices.
  • Buy Cheapest new fda approved drugs Now Best Internet. No Prescription Needed.
  • Buy Cheap discount erectile dysfunction medications Now Cheap Meds Without Prescription. Best Online.
  • Buy Cheap us cialis soft Now Low Prices. Bonus Pills And Reorder Discounts!
  • Buy Cheapest california vardenafil hcl levitra Online Free Viagra Pills! Best Drugstore.
  • Buying Cheap pay pal buy diflucan. Mexican Pharmacy, Best Prices. Best Drugstore.
  • Buy Cheapest secure online pharmacy Online Free Viagra Pills! Online Medical Shop.
  • Buy Cheap levaquin interactions Now Best Prices. 24/Internet)(safe Pharmacy.
  • Buy Cheap norvasc buy Now Best Internet. Special Prices For norvasc buy!
  • Buy Cheap alprazolam online without prescription Now 24/Online Pharmacy. WorldWide Shipping.
  • Buy Cheap cialis canadian drug Now Free Viagra Pills! Guaranteed Shipping.
  • Buy Cheapest klonopin overdose Now Low Prices. 24/Internet)(safe Pharmacy.
  • Buy Cheap presciption drugs sale online Now 100% Satisfaction Guaranteed. Best Online.
  • Buy Cheap cialis purchase Now All Medications Are Certificated! Low Prices.
  • Buy Cheap inderal tablets Online 24/Online Pharmacy. Pharmacy Store.
  • Buy Cheap levitra tablet Now WorldWide Shipping. Discount Online Pharmacy.
  • Buy Cheap info propecia Now Free Viagra Pills! Top Online Pharmacy.
  • Buy Cheap levitra side effect Online Buy Medications Online. Best Drugstore.
  • Buy Cheapest generic ultram Now Best Internet. Discount Online Pharmacy.
  • Buy Cheap diazepam no prescription need Now Online Prices For diazepam no prescription need! Best Drugstore.
  • Buy Cheapest candida diflucan Now Best Prices. 100% Satisfaction Guaranteed.
  • Buy Cheap buy meds online Now Top Online Pharmacy. Cheap Prescription Drugs.
  • Buy Cheap effects side ultram Online Internet Prices For effects side ultram! Low Prices.
  • Buy Cheap overnight shipping viagra Online Discount Pharmacy Online. Best Internet.
  • Buy Cheap overnight cialis delivery Online Online Medical Shop. WorldWide Shipping.
  • Buy Cheapest cialis tadafil order online Now Pharmacy Store. Pharmacy At The Best Price!
  • Buy Cheapest phentermine obesity Now Guaranteed Shipping. Top Online Pharmacy.
  • Buy Cheapest ativan dosage Now Best Internet. Cheap Pharmacy Online.
  • Buy Cheap levitra vardenafil Online Best Internet. 24/Online Pharmacy.
  • free levitra trial Online Without Prescription Best Drugstore. Pharmacy Store.
  • Buy Cheap ordering meds without a prescription Now Best Online. 100% Satisfaction Guaranteed.
  • Buy Cheap purchase phentermine with no prescription Now Free Viagra Pills! Online Prices For purchase phentermine with no prescription!
  • Buy Cheap bodybuilding fat burner Online Cheap Prescription Drugs. Low Prices.
  • Buy Cheap propecia side effects Now WorldWide Shipping. Cheap Online Pharmacy.
  • Buy Cheapest tramadol alcohol Now Best Internet. Cheap Online Pharmacy.
  • Buy Cheapest phentermine pill Online Best Online. Internet Prices For phentermine pill!
  • Buy Cheapest medicine pms anti depressant Online Online Prices For medicine pms anti depressant! Best Prices.
  • Buy Cheapest trazodone cheap Now Discount Pharmacy Online. Pharmacy Store.
  • Buy Cheap phenergan w codeine buy Now Cheap Online Pharmacy. WorldWide Shipping.
  • Buy Cheapest weight loss fast Online Guaranteed Shipping. Pharmacy Store.
  • Buy Cheapest pain relief online doctors prescriptions Now Online Prices For pain relief online doctors prescriptions! Pharmacy Store.
  • Buy Cheapest buy weight loss medications Online Best Drugstore. Cheap Pharmacy Online.
  • Buy Cheapest klonopin mg dose Online Online Medical Shop. Pharmacy Store.
  • Buy Cheap mg buy phentermine Now Top Online Pharmacy. Cheap Prescription Drugs.
  • Buy Cheapest addiction to ambien Now Pharmacy Store. Discount Pharmacy Online.
  • Buy Cheap online medications for chlamydia Online Best Drugstore. No Prescription Needed.
  • Buy Cheap pfizer revatio Online Discount Pharmacy Online. Best Internet.
  • Buy Cheap programs burning fat fast Now 24/Internet)(safe Pharmacy. Best Drugstore.
  • Buy Cheapest phentermine diet pills Now Guaranteed Shipping. Top Online Pharmacy.
  • Buy Cheap tramadol drug interactions Now Drugs, Health And Beauty. Pharmacy Store.
  • Buy Cheapest cost of treating bipolar disorder Online No Prescription Needed. Best Online.
  • Buy Cheap viagra erection Online Low Prices. Order Cheap Meds Without Rx.
  • Buy Cheap fat burning ingredients Now The Largest Internet Pharmacy. Best Drugstore.
  • Buy Cheapest tramadol without a prescription Now Low Prices. Discount Pharmacy Online.
  • Buy Cheapest cyalis levitra sales viagra Now Top Online Pharmacy. Online Medical Shop.
  • Buy Cheap how to buy viagra online Online 24/Online Pharmacy. WorldWide Shipping.
  • Buy Cheap alternative cialis Now Pharmacy Store. Order Cheap Meds Without Rx.
  • Buy lipitor manufacturer Online Without Prescription. Best Prices. Best Online.
  • Buy Cheapest ultram online prescription Now Best Drugstore. Top Online Pharmacy.