Page 1 of 1

How to give the search option for website ?

Posted: Tue Apr 17, 2012 8:45 am
by premecorp
Hello Friends,
I am working in a website where one search box is available, this website is for online training provider, so it has different pages for different courses. If anyone want to search by giving any course name the related course list or that particular course page should open. If anyone have any idea regarding this please help me and what are the different ways to achieve this means I have to maintain database or I can use xml also for this.

Regards,
Premashish

Re: How to give the search option for website ?

Posted: Tue Apr 17, 2012 9:08 am
by Grizzzzzzzzzz
You could either index things in a database with relevant keywords, likewise with an XML file if you want to stay clear of a database. Its fairly easy to do and efficient.

You could write a script that searches your site in real-time on live content, looking for word matches. Although that could be slow if the site is fairly large, and if it gets alot of traffic it could consume alot of resources. Easy to do, zero effort to maintain, but potentially a nasty resource hog.

or you could just resort to a minimal effort solution http://www.google.com/cse/