search.html is obsolete?

Bug #687995 reported by Giuseppe Terrasi
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-docs (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: ubuntu-docs

In https://help.ubuntu.com in search box if I digit a key word (example: gimp, nautilis, f-spot, pitivi, openoffice) I find only community docs and at maximum 8.04 official doc.

Perhaps it is necessary to update the cx value?

<input type="hidden" name="cx" value="004599128559784038176:vj_p0xo-nng" />

Bye

Related branches

Robert Roth (evfool)
Changed in ubuntu-docs (Ubuntu):
status: New → Confirmed
Revision history for this message
Matthew East (mdke) wrote :

Dustin, could you have a look at this please?

Revision history for this message
Dustin Kirkland  (kirkland) wrote : Re: [Bug 687995] Re: search.html is obsolete?

Hi Matthew,

Please update all references of 004599128559784038176:vj_p0xo-nng in
the code to 003883529982892832976:e2vwumte3fq.

That should solve it :-)

Thanks!
Dustin

Revision history for this message
Book 'em Dano (heymrdjd) wrote :

Can anyone provide a command using sed to find and replace the thousands of instances of 004599128559784038176:vj_p0xo-nng in help.ubuntu.com?

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

I only see two instances:

./libs/ubuntu-banner.xsl: <input type="hidden" name="cx" value="004599128559784038176:vj_p0xo-nng" />
./libs/ubuntu-banner.xsl: document.write(' <input type="hidden" name="cx" value="004599128559784038176:vj_p0xo-nng" />');

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

I pushed a branch that fixes this at: lp:~kirkland/ubuntu-docs/687995

Revision history for this message
Book 'em Dano (heymrdjd) wrote :

I admit that I'm ignorant about the coding aspect of this issue and that I'm not sure which files are relevant to fixing the issue, but I have found this string "004599128559784038176:vj_p0xo-nng" in many files.

Revision history for this message
Connor Imes (ckimes) wrote :

Dano, the xsl file that contains the code is executed as part of the transformation that converts our Docbook XML source into the HTML files. When we do we a build and export the html files to the help.ubuntu.com branch, the change will be made on all the files.

Revision history for this message
Giuseppe Terrasi (giuseppeterrasi-deactivatedaccount) wrote :

then you need to recompile the documentation? strange.

in help.ubuntu-it.org we use a search.js file for each release documentation saved for example in /10.10/ubuntu/libs/search.js

Each time we update this valute: var cseId = "008742922050479854700:sgrtw8uh7hc";

For example, in this release I forgot to update the value of CSEL. It 'was enough to create a new custom search by including the sitemap of the new documentation, no need to rebuild.

You can try: http://help.ubuntu-it.org/10.10/ubuntu/search.php?s=test

My two cents, bye.

Revision history for this message
Matthew East (mdke) wrote :

Giuseppe - it sounds like we should adopt something similar. Would you be interested in working on a patch for this?

But we can't use php - does that matter?

Revision history for this message
Giuseppe Terrasi (giuseppeterrasi-deactivatedaccount) wrote :

Uhm... Really you can't use php in h.u.c?

In php page we use this script in php:

<?php
    $startCustomSearch = !empty($_GET['s']) ? $_GET['s'] : "";
    echo '<script language="Javascript" type="text/javascript">startCustomSearch = "' . $startCustomSearch . '";</script>';
?>

At the moment we have some documentation about this http://wiki.ubuntu-it.org/InterGruppi/NuoviRilasci
And we have a repo with custom code: https://code.launchpad.net/~ubuntu-it-wiki/wiki-ubuntu-it/help-repo

Fortunally you know italian languages ;-)

I can try to perform this on h.u.c, in order to create a "local" search engine for each official doc version.

But on italian doc team we are overworked and there are few people (only two!). I can add this on my to do and them try to add in future a patch for 10.04 and 10.10 first.

Meanwhile, If others would like to begin this work would be welcome.

Revision history for this message
Matthew East (mdke) wrote :

On 29 April 2011 11:37, Giuseppe Terrasi <email address hidden> wrote:
> Uhm... Really you can't use php in h.u.c?

Nope.

> At the moment we have some documentation about this http://wiki.ubuntu-it.org/InterGruppi/NuoviRilasci
> And we have a repo with custom code: https://code.launchpad.net/~ubuntu-it-wiki/wiki-ubuntu-it/help-repo
>
> Fortunally you know italian languages ;-)

Will have a look - thanks!

--
Matthew East
http://www.mdke.org
gnupg pub 1024D/0E6B06FF

Revision history for this message
Connor Imes (ckimes) wrote :

You can now find official docs when searching on help.ubuntu.com. Thanks for the report, Giuseppe, and for the patch, Dustin.

Changed in ubuntu-docs (Ubuntu):
importance: Undecided → High
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.