After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 655704 - Search ends in "your computer or network may be sending automated queries" page
Search ends in "your computer or network may be sending automated queries" page
Status: RESOLVED FIXED
Product: website
Classification: Infrastructure
Component: help.gnome.org
current
Other All
: High blocker
: ---
Assigned To: GNOME Web maintainers
GNOME Web maintainers
: 666971 669033 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-08-01 09:08 UTC by Luca Ferretti
Modified: 2012-08-12 13:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Luca Ferretti 2011-08-01 09:08:35 UTC
It seems search feature is broken, any attempt (changing kewyord, browser, computer, IP, country) ends in a Google Sorry page saying  "your computer or network may be sending automated queries. To protect our users, we can't process your request right now" and linking http://www.google.com/support/bin/answer.py?answer=86640 for more info


## Steps to reproduce ##

 * go to library.gnome.org
 * type something in search
 * hit Return
Comment 1 Murray Cumming 2011-09-21 19:38:34 UTC
I see this too.
Comment 2 Frederic Peters 2011-12-29 08:46:42 UTC
*** Bug 666971 has been marked as a duplicate of this bug. ***
Comment 3 Frederic Peters 2012-01-30 17:23:27 UTC
*** Bug 669033 has been marked as a duplicate of this bug. ***
Comment 4 Pascal Terjan 2012-03-13 16:20:41 UTC
I'll try to get more info
Comment 5 pterjan 2012-04-26 20:50:28 UTC
So it seems that search interface has been deprecated for a while (and instead of saying it, people are now blocked in a generic way from using it).
Currently supported method is to create a Custom Search engine at http://www.google.com/cse/
Comment 6 Olav Vitters 2012-04-26 21:23:28 UTC
Ah, thanks!

I was about to create a CSE, but wondering: should the CSE be specific per domain or not (e.g. one for dgo, another for lgo)?
Comment 7 André Klapper 2012-05-04 11:02:36 UTC
Impossible to search for anything on d.g.o => Blocks development.
Comment 8 Frederic Peters 2012-08-12 11:10:38 UTC
Pascal, (or anyone with a Google account); could you get the required html bits? (I'll then integrate them properly in library-web).
Comment 9 Pascal Terjan 2012-08-12 11:24:59 UTC
The problem is that generated code only contains a CSE id, and the control of it will be associated to the account creating it, so it would be better to have it managed by a "GNOME owned" account.

Also, the owner of it can request to get money from ads displayed with search results.
Comment 10 Pascal Terjan 2012-08-12 12:48:23 UTC
Full doc on https://developers.google.com/custom-search/docs/element

Results can now be displayed inside the page, or to another page of the site.

I think the best would be to create a search page on the site and have the form send there.

Then on that page, include the js + add the results element and tell it the parameter from the url to use as a search query (default is q).

The js for the <head>:

<script>
(function() {
  var cx = '123:456'; // Insert your own Custom Search engine ID here
  var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
  gcse.src = (document.location.protocol == 'https' ? 'https:' : 'http:') +
      '//www.google.com/cse/cse.js?cx=' + cx;
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
})();
</script>

The search results:

<gcse:searchresults-only queryParameterName="query"></gcse:searchresults-only>
Comment 11 Frederic Peters 2012-08-12 13:59:21 UTC
Thanks.

Do note this is now done with Pascal Terjan google account but it can be extended if want more administrators.

commit 4629064e2a804fc529f6419f802c39ad8612afc9
Author: Frédéric Péters <fpeters@0d.be>
Date:   Sun Aug 12 15:54:57 2012 +0200

    switch site search to use google custom search engine (GNOME bug 655704)
    
    With the help of Pascal Terjan; thanks.