Message boards : Number crunching : BOINC Wiki - Outage Notice - Monday 2005-10-09
Author | Message |
---|---|
Paul D. Buck Send message Joined: 17 Sep 05 Posts: 815 Credit: 1,812,737 RAC: 0 |
The latest version of the Wiki software is out. I am pretty sure I know what to do to implement a "Goggle" search of the Wiki, which will, at least initially be just an enhancement to the search box to use the Google search engine. The intent is to change from the baseline search which uses the MySQL "fulltext-search" which is a word only search. So, it finds occurrences of words, and does not allow searching for phrases etc. So, health permitting, Monday I will: 1) Take BOINC Wiki off-line if needed. 2) Make a database back up 2a) download image directories 3) Install media Wiki 1.5.0 3a) Upload image directories 4) Make selected changes to implement Google Search in the current search dialog box, thus allowing more concise searches. 5) Not sure ... 6) Bring the system back alive. With luck, no mistakes, who knows ... |
Ocean Archer Send message Joined: 22 Sep 05 Posts: 32 Credit: 49,302 RAC: 0 |
Good luck on the change, Buck -- and thanks again for all your efforts |
Paul D. Buck Send message Joined: 17 Sep 05 Posts: 815 Credit: 1,812,737 RAC: 0 |
Doing a "trial" right now, bad news is that one part is not working well ... ugh ... of course it is the database backup/restore that is the problem. |
Paul D. Buck Send message Joined: 17 Sep 05 Posts: 815 Credit: 1,812,737 RAC: 0 |
Well, the good news is, I solved THAT problem ... it looks like I have a good image of the database downloaded, now I know what I have to do to make a good copy ... now I am doing the wiki site files and images ... THen to see if the Wiki "comes-up" on my local server ... Then I can test the changes before I upload them ... It never ceases to amaze me how complicated things always seem to get ... and how many trivial things you have to fiddle with to make this stuff go ... |
Paul D. Buck Send message Joined: 17 Sep 05 Posts: 815 Credit: 1,812,737 RAC: 0 |
My test version is up now on the site... Gonna take a break ... it is 9 PM California (PST) time ... and, I have most of the first steps done. I proofed I can duplicate the site, made the code changes and tested them to see that the work. Problem is, I have not tested the conversion of the site to the new version and made the code changes there ... THEN, I have to truncate some data, make sure that does not break the data base, make sure the internal links are properly updated ... THEN, I can start on this for real ... gee... I only seem to have 36 hours into this project ... :) The good news is that I can turn on both searches, only one or the other with a configuration parameter change. And, yes, I plan to submit the code once I see that it works with the new version ... Key feature is that you can use the new or the old familiar search. In the Google search you can use double quotes now to look for exact phrases. So, enter Quorum of Results in both searches, look at the words highlighted. Then, do "Quorum of Results" and see the difference ... in essence it should cut down on the number of spurious pages pulled. And, yes, I had planned to look into an advanced searching page ... The depressing thing was how much PHP code I had forgotten ... :( # The type, or types of searches allowed. Values are: "Google", "WikiDefault", "Both" $wgSearchTypeEnabled = "Both"; and: <?php global $wgSearchTypeEnabled; // pull in the externally declared "Global" if ((strtolower($wgSearchTypeEnabled) == strtolower("Google")) || (strtolower($wgSearchTypeEnabled) == strtolower("Both" ))) { echo " <div id="p-search" class="portlet">rn"; echo " <h5><label for="searchInput">Google Search</label></h5>rn"; echo " <div class="pBody">rn"; echo " <!-- SiteSearch Google -->rn"; echo " <form method="get" rn"; echo " action="http://www.google.com/custom" rn"; echo " target="_top">rn"; echo " <table border="0" bgcolor="#ffffff">rn"; echo " <tr>rn"; echo " <td nowrap="nowrap" valign="top" align="center" height="32">rn"; echo " <a href="http://www.google.com/" title="Google Logo">rn"; echo " <img src="http://www.google.com/logos/Logo_25wht.gif"rn"; echo " border="0" rn"; echo " alt="Google">rn"; echo " </img>rn"; echo " </a><br/>rn"; echo " <input type="hidden" rn"; echo " name="domains"rn"; echo " value="http://boinc-doc.net/boinc-wiki/" />rn"; echo " <input type="hidden" rn"; echo " name="sitesearch" rn"; echo " value="http://boinc-doc.net/boinc-wiki/" />rn"; echo " <input id="searchInput"rn"; echo " type="text" rn"; echo " name="q" rn"; echo " value=""></input>rn"; echo " </td>rn"; echo " </tr>rn"; echo " <tr>rn"; echo " <td nowrap="nowrap" align="center">rn"; echo " <input type="submit" name="sa" value="Google Search" class="searchButton" />rn"; echo " <input type="hidden" name="ie" value="UTF-8"></input>rn"; echo " <input type="hidden" name="oe" value="UTF-8"></input>rn"; echo " <input type="hidden" name="hl" value="en"></input>rn"; echo " </td>rn"; echo " </tr>rn"; echo " </table>rn"; echo " </form>rn"; echo " <!-- SiteSearch Google --> rn"; echo " </div>rn"; echo " </div>rn"; } if ((strtolower($wgSearchTypeEnabled) == strtolower("WikiDefault")) || (strtolower($wgSearchTypeEnabled) == strtolower("Both" )) ) { echo " <div id="p-search" class="portlet">rn"; echo " <h5><label for="searchInput">"; $this->msg('search'); echo "</label></h5>rn"; echo " <div class="pBody">rn"; echo " <!-- SiteSearch WikiDefault --> rn"; echo " <form name="searchform" rn"; echo " action=""; $this->text('searchaction'); echo ""rn"; echo " id="searchform">rn"; echo " <input id="searchInput" rn"; echo " name="search"rn"; echo " type="text"rn"; if ($this->haveMsg('accesskey-search')) { echo " accesskey=""; $this->msg('accesskey-search'); echo ""rn"; } if (isset($this->data['search']) ) { echo " value=""; $this->text('search'); echo """; // don't end with line feed, need end of control } echo " />rn"; echo " <input type="submit"rn"; echo " name="go"rn"; echo " class="searchButton"rn"; echo " id="searchGoButton"rn"; echo " value=""; $this->msg('go'); echo "" /> rn"; echo " <input type="submit"rn"; echo " name="fulltext"rn"; echo " class="searchButton"rn"; echo " value=""; $this->msg('Search'); echo "" />rn"; echo " </form>rn"; echo " <!-- SiteSearch WikiDefault --> rn"; echo " </div>rn"; echo " </div>rn"; } ?> Most of the original code from the two examples, the one in the baseline page, and the one person who suggested a possible solution are basically there, just neatened up so it is readable and maintainable ... |
Paul D. Buck Send message Joined: 17 Sep 05 Posts: 815 Credit: 1,812,737 RAC: 0 |
Ok, I am taking the site off-line and it will be back, I hope, in a couple of hours ... I am talking programmer time, so, it could be till next Tuesday ... I will post an update here, and in a new thread when it is back up ... |
Paul D. Buck Send message Joined: 17 Sep 05 Posts: 815 Credit: 1,812,737 RAC: 0 |
Ok, it seems to be working for me ... Remember, you do not need an account to use the Wiki. Just look around... The two search boxes do different searches. The lower one works as before. The "Google" one, works as the BOINC Web Sites do now, it searches the BOINC Wiki and will pull up a "better" list. You can do the usual search operations that were not available before. The simplest is the one I described below. You can also try anther like BOINC System ... with just the two words you get a result like: Main Page - BOINCWiki The material that comprises the BOINC System in all of its glory can be found in the following topical categories:. Participating in BOINC Powered Projects ... With the "hit" count at 867 ... using "BOINC System" ... the second word is no longer highlighted. The "hit" count is 283 ... |
Paul D. Buck Send message Joined: 17 Sep 05 Posts: 815 Credit: 1,812,737 RAC: 0 |
There seems to be some lingering "oddness". Some of the links seem to want to report themselves in: http://boinc-doc.net/b-w/index.php?title= Instead of the correct: http://boinc-doc.net/boinc-wiki/index.php?title= I cannot find where this "magic" is happening TO me ... but, if I can find it I will see what I can do to eradicate it. In the mean time, SOMETIMES, manually editing the link to the correct link seems to fix the problem, and MAY solve it for all of us. I have not proved this "fix" yet. Editors, you can "force" an "empty" change which also seems to cure the link error. You can tell if the link is bad floating the cursor over the link. Report any link errors to me, e-mail is "best" (ugh, the work!), as well as any other problems. For all of that, I really do think that this is a HUGE improvement. We have many new features, including: # related changes, # printable version (a requested feature, but you still have to visit all pages you want to print # New page list # "Special Pages" page list is alphabetized # Google search (Yea! Paul! :)) # Changes to the security model (makes control easier, and removes some things the normal viewer cannot use, like the IP Link at the top of the page ... Oh, and I changed the wording of the message from "Create account ..." to only "Log In", still going to get calls though # FDL Icon, and stuff ...
|
Message boards :
Number crunching :
BOINC Wiki - Outage Notice - Monday 2005-10-09
©2024 University of Washington
https://www.bakerlab.org