Search facility

Search facility

by Pubudu Premachandra -
Number of replies: 9
Is there any kind of search engine facility that can integrated to moodle system as a module or some otherway. My point is that If this moodle.org is actually run on moodle and Since it has the searching facility, Why that module is not with moodle 1.5.3.

1) How this search facility has been implemented. Is it a free module??
2) What we have to do if we like to implement search facility to our moodle systems.??
Average of ratings: -
In reply to Pubudu Premachandra

Re: Search facility

by Daniel Kazup -

I too would like to know how to implement the site search I see on the front page of moodle.org.

Regards,

Dan

In reply to Daniel Kazup

Re: Search facility

by Don Schwartz -
I do not speak for Moodle, but I think the Site Search you refer to was an older contributed block that is not part of the Moodle distribution.
You can always build a custom block yourself using third party search tools.
One of the strenghs of Moodle is how customizable the interface is, therefore you should not expect Moodle.org to represent what you get "out of the box", rather it should always strive to show what is possible.
In reply to Daniel Kazup

Re: Search facility

by Jan Dierckx -

The site search block on moodle.org is in fact just a HTML block filled with some html code provided by google.

  • Make sure you allow Google to index your page (Look at your site's configuration page)

  • Add a HTML block to the frontpage

  • Read the conditions and follow the directions provided by Google

  • Copy the code you get from Google

  • If you are using the HTML editor, make sure you enter the HTML directly, by first clicking on the <> button.

  • Paste the code directly into the HTML block.

Looking at this page it seems Google also provides an adfree SiteSearch for educational institutions and non-profit organizations worldwide.

HTH

In reply to Jan Dierckx

Re: Search facility

by Don Schwartz -
I finally worked through google and got my custom serach setup only to have Moodle filtering strip out the critical code. How can I bypass filtering the html for an admin created block?  I've tried going the directly to the mysql but that doesn't work either.  Do I need to set a data type in MySQL?
In reply to Don Schwartz

Re: Search facility

by Jan Dierckx -

Hi Don,

Strange. It works on both of my moodle installations. You could try disabling the HTML editor in your userprofile and see if that makes it easier to add pure HTML.

Can you tell me which part is being stripped out?

Jan.

Attachment ScreenShot021.jpg
In reply to Jan Dierckx

Re: Search facility

by Don Schwartz -
Code as pasted from google
*********************************
<!-- Search Google -->
<center>
<FORM method=GET action=http://www.google.com/custom>;
<TABLE bgcolor=#FFFFFF cellspacing=0 border=0>
<tr valign=top><td>
<A HREF=http://www.google.com/search>;
<IMG SRC= border=0 ALT=Google
align=middle></A>
</td>
<td>
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT type=submit name=sa VALUE="Google Search">
<INPUT type=hidden name=cof
adlearning_by.gif;LW:240;AWFID:2a353044945fb385;">
<input type=hidden name=domains value="cadlearning.com"><br><input type=radio
name=sitesearch value=""> Search WWW <input type=radio name=sitesearch
value="cadlearning.com" checked> Search cadlearning.com
</td></tr></TABLE>
</FORM>
</center>
<!-- Search Google -->
Same code after saving block.
************************************
<div><!-- Search Google --><center><form action="http://www.google.com/custom" method="get"><table cellspacing="0" bgcolor="#ffffff" border="0"><tbody><tr valign="top"><td><a href="http://www.google.com/search"><img alt="Google" src="http://www.google.com/logos/Logo_40wht.gif" align="middle" border="0" /></a> </td><td><input maxlength="255" size="31" name="q" /> <input type="submit" name="sa" /> <input type="hidden" name="cof" /> <input type="hidden" name="domains" /><br /><input type="radio" name="sitesearch" /> Search WWW <input type="radio" checked="true" name="sitesearch" /> Search cadlearning.com </td></tr></tbody></table></form></center><!-- Search Google --></div>
************************************
this is 1.5.2
Notice that all references to my site are now missing.
In reply to Jan Dierckx

Re: Search facility

by Don Schwartz -
Jan,
Turning off the html editor works.  Thank you.
In reply to Don Schwartz

Re: Search facility

by stefania kiri -

Hello to everyone,

I've tried to use your advice above to create a search block, like the search I see on the front page of moodle.org but i couldn't. Google doesn't return any results. Is it because of encoding. I really am desparete.

Thanks in advance.

Stefi

In reply to Don Schwartz

Re: Search facility

by stefania kiri -

Hello to everyone,

I've tried to use your advice above to create a search block, like the search I see on the front page of moodle.org but i couldn't. Google doesn't return any results. Is it because of encoding. I really am desparete.

Thanks in advance.

Stefi