The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Search function

Hi,

We have created an intranet site for our organization all the pages they have requested were static. So we didnít have much trouble in getting it completed.
We have around 50-60 html pages. Now the guys have come back saying they want search functionality in the home page where they will be typing some keywords which should retrieve the all the WebPages in the intranet site matching the keyword... I havenít come across any code which does this kind of functionality (crawling)... Can someone help me out in finding the code or the code snippet which I can use to fix this issue...?

If your intranet consists of static pages you'll need an indexing program that continuously monitors those pages and builds an index database. Then you'll need a search script or program that searches this database.

On a Windows server you can use Index Server as a low-budget (and low functionality) indexer. You can write an ASP/VBScript or .NET app to query the index database.

The best option is probably to acquire a ready-made package for this. Building a decent search function is not a trivial undertaking.