Forum Moderators: phranque

Message Too Old, No Replies

Search utility for website

         

constantinesavva

4:40 pm on Feb 25, 2006 (gmt 0)

10+ Year Member



I would like to add a search utility on my website for visitors to be able to search the content of the website. Any suggestions please? Thanks.

Matt Probert

4:54 pm on Feb 25, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If your site is small, then a simple real-time linear search written in Perl is easy to implement.

A larger site will benefit from having the key content indexed, but this needn't be too difficult. Perhaps just a text file with two fields per record, "title" and "page name" such as:

"bluewidget" "bw.htm"

Then the search would scan the index file for the search term, and display the associated page.

You can find free Perl search scripts on the web.

Don't think you need complex indexing scripts, or a SQL database, unless you're indexing millions of pages!

Matt

Wonderstuff

5:46 pm on Feb 25, 2006 (gmt 0)

10+ Year Member



Matt gives a very conclusive answer here.

If this is still too technical for you, and you have a very basic site - you could use Bravenet's search facility, or similar.