| Summary: | Replace local Eclipse.org search engine with Google | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Community | Reporter: | Denis Roy <denis.roy> | ||||||||
| Component: | Website | Assignee: | 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
Denis Roy
+1 good idea I never really understood while you kept on running and tuning your own indexer. ;) +1 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 --> (In reply to comment #3) Yep, that's it - I already signed up with Google. 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.
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. +1 looks good 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. 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 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 --> Time to offer beer in exchange for a bump in this bug? :) Shall I open the bidding at 1 pint at Marshies? - Don Janet, any news on whether we can use Google Search on our website? I need a little more context - is this the use that has already been implemented, or is this a different use? 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 I've changed the /projects/ search page to this new Donald code. 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.
Created attachment 90093 [details]
Patch to add google search code to app.class.php
Would help to return the actual string.
+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 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() |