This can be answered several ways. Do you need to search the site dynamically (each time the user clicks search), or can you run a cron job that periodically builds the indexes? The first method is rough on the server if you have a lot of hits. The second method doesn't work as well when you have a site with high dynamic content.
There's also the question of do you to seach on ANY text in the web page, only META tag information, support boolean logic searchs, fuzzy matches, sub-searches, etc.
I'm sure there are better sources, but
Matt's Script Archive has an OK basic search utility.
I've seen this question a lot, and the answer is very dependant on your needs. There are, by the way, a least two dozen free search scripts out there. I don't have URLs for them, but a search in Alta Vista should turn them up for you.
--Chris
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.