Comment 25 for bug 305905

Revision history for this message
Paul Sladen (sladen) wrote :

Adi: ta.

Rick: AFAIK, the only reason for the CSE use was/is to quickly enable revenue share on search results, before Canonical (Ubuntu) had a proper account/relationship setup with Google (Yahoo).

I'm not party to the agreement that was signed, so I can only make an educated guess at the appropriate strings based on the diffs that were made to the Ubufox settings recently. Based on that "partner=ubuntu" appears to be sufficient---is this the case? Is this all that the agreement requires be passed.

There's various things "wrong" here.

  1. index.html.it (Italian) then leading English-language results. This is solved by passing &hl=it (and the same for all other language codes)
  2. only a subset of language being available as 'index.html.CC' translations, despite the backend search provider providing more
  3. Use of CSE reducing feature set (no Maps, Images, ...). This is solvable by replacing "google.com/cse?cx=..." with "google.com/search?partner=ubuntu"

Ultimately *lets stick with Italian as that was the example used above", we end up with two diffs:

 --- index.html.it.orig 2010-04-27 16:32:39.000000000 +0100
 +++ index.html.it.hl 2010-04-28 01:18:29.000000000 +0100
 @@ -162,2 +162,3 @@
                  <input type="hidden" name="cx" value="partner-pub-9300639326172081:d9bbzbtli15" />
 + <input type="hidden" name="hl" value="it" />
                  <input type="hidden" name="ie" value="UTF-8" />

and then:

 --- index.html.it.hl 2010-04-28 01:18:29.000000000 +0100
 +++ index.html.it.cse 2010-04-28 01:16:31.000000000 +0100
 @@ -161,2 +161,2 @@
 - <form method="get" action="http://www.google.com/cse" name="search">
 + <form method="get" action="http://www.google.com/search" name="search">
 - <input type="hidden" name="cx" value="partner-pub-9300639326172081:d9bbzbtli15" />
 + <input type="hidden" name="source" value="ubuntu" />

Bingo, two out of three solved and the search for "casa" returns what is expected, in the language expected, in the user interface expected:

  http://www.google.com/search?source=ubuntu&hl=it&ie=UTF-8&sa=Search&q=casa