Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 213224

Summary: Replace local Eclipse.org search engine with Google
Product: Community Reporter: Denis Roy <denis.roy>
Component: WebsiteAssignee: phoenix.ui <phoenix.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bjorn.freeman-benson, donald.smith, gunnar, ian.skerrett, janet.campbell, nathan
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Patch to replace search
none
Patch to add google search code to app.class.php
none
Patch to add google search code to app.class.php none

Description Denis Roy CLA 2007-12-17 15:25:32 EST
http://eclipse-projects.blogspot.com/2007/12/google-search-across-eclipse-projects.html

The eclipse.org search engine tries real hard but seems to fail miserably at providing useful search results.

Running this search engine is not trivial: the indexer generates substantial load when it runs, the resulting database is almost 6GB, and a high amount of search queries means it adds load to our database servers.  I suggest we simply pull it in favor of Bjorn's Google search.

Do not that I'm not talking about trying a different search engine, simply replacing our existing one with a Google Custom Search.
Comment 1 Ian Skerrett CLA 2007-12-17 15:45:46 EST
+1  good idea
Comment 2 Gunnar Wagenknecht CLA 2007-12-18 00:53:25 EST
I never really understood while you kept on running and tuning your own indexer. ;)

+1

Comment 3 Denis Roy CLA 2008-01-14 15:14:32 EST
Bjorn, if I look at the Project Search, looks like all I need to do is replace the search box in the Phoenix header with this.  Is that all I need to do?

<!-- Google CSE Search Box Begins  -->
<form action="http://www.google.com/cse" id="searchbox_001774807050229944597:xrjquhh7kg8">
  <input type="hidden" name="cx" value="001774807050229944597:xrjquhh7kg8" />
  Google the Eclipse projects: <input type="text" name="q" size="60" />
  <input type="submit" name="sa" value="Search" />
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_001774807050229944597%3Axrjquhh7kg8&lang=en"></script>
<!-- Google CSE Search Box Ends -->

Comment 4 Bjorn Freeman-Benson CLA 2008-01-14 16:09:58 EST
(In reply to comment #3)
Yep, that's it - I already signed up with Google.
Comment 5 Denis Roy CLA 2008-01-15 16:07:31 EST
Created attachment 86976 [details]
Patch to replace search

This is a patch to replace the search bar in the Phoenix header.  Once this is live, I won't remove the Eclipse search application until all the links have been updated to use Google.
Comment 6 Denis Roy CLA 2008-01-15 16:37:00 EST
I committed the patch to http://phoenix.eclipse.org/phoenix, so you can see what it would look like under the three skins we kinda support.
Comment 7 Nathan Gervais CLA 2008-01-15 16:41:35 EST
+1 looks good
Comment 8 Denis Roy CLA 2008-01-16 10:55:34 EST
Thanks - I've changed the Phoenix headers on the live site.  I'll leave this bug open as a reminder to ask everyone else (including projects) to discontinue using the Eclipse search so that I can eventually remove the application altogether.
Comment 9 Donald Smith CLA 2008-01-16 11:59:09 EST
Use this code instead:

<!-- Google CSE Search Box Begins  -->
<form action="http://" id="searchbox_017941334893793413703:sqfrdtd112s">
  <input type="hidden" name="cx" value="017941334893793413703:sqfrdtd112s" />
  <input type="hidden" name="cof" value="FORID:11" />
  <input type="text" name="q" size="25" />
  <input type="submit" name="sa" value="Search" />
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_017941334893793413703%3Asqfrdtd112s&lang=en"></script>
<!-- Google CSE Search Box Ends -->


It is linked with the Foundation Adsense account for stats, click through revenue, etc.

After some experimentation and testing, I would also like to explore the possibility of adding members to search results pages.

 - Don
Comment 10 Donald Smith CLA 2008-01-16 12:34:20 EST
Sorry, sorry, sorry.  THIS code:

<!-- Google CSE Search Box Begins  -->
<form action="http://www.google.com/cse" id="searchbox_017941334893793413703:sqfrdtd112s">
  <input type="hidden" name="cx" value="017941334893793413703:sqfrdtd112s" />
  <input type="text" name="q" size="25" />
  <input type="submit" name="sa" value="Search" />
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_017941334893793413703%3Asqfrdtd112s&lang=en"></script>
<!-- Google CSE Search Box Ends -->

Comment 11 Donald Smith CLA 2008-01-28 14:53:58 EST
Time to offer beer in exchange for a bump in this bug?  :)

Shall I open the bidding at 1 pint at Marshies?

 - Don
Comment 12 Denis Roy CLA 2008-02-11 06:57:01 EST
Janet, any news on whether we can use Google Search on our website?
Comment 13 Janet Campbell CLA 2008-02-11 13:55:48 EST
I need a little more context - is this the use that has already been implemented, or is this a different use?
Comment 14 Donald Smith CLA 2008-02-11 13:59:17 EST
It is the exact same use that is currently implemented.  The only difference it to update an ID code in the search that allows the Eclipse Foundation to receive ad revenue on any click-throughs like we do on EPIC/LIVE.  Right now there are no ads served on the search results page, this would change that - improving member visability into the ecosystem.

 - Don
Comment 15 Bjorn Freeman-Benson CLA 2008-02-17 20:31:15 EST
I've changed the /projects/ search page to this new Donald code.
Comment 16 Denis Roy CLA 2008-02-19 13:47:46 EST
Created attachment 90092 [details]
Patch to add google search code to app.class.php

Here's a patch to app.class.php to add the code as a function, so that we don't spread the same code everywhere on our site.
Comment 17 Denis Roy CLA 2008-02-19 13:49:20 EST
Created attachment 90093 [details]
Patch to add google search code to app.class.php

Would help to return the actual string.
Comment 18 Donald Smith CLA 2008-02-19 15:07:10 EST
+1.  FWIW, the search code on the projects page is generating CTR's for our member ecosystem at 10x what the ads on EPIC are generating and giving lots of great stats.  This is really high value stuff for the membership.

 - Don
Comment 19 Denis Roy CLA 2008-02-21 11:10:05 EST
This was committed to www

If you want to add the Google search to a page, DO NOT paste the code from comment 10.  Simply reference $App->getGoogleSearchHTML()