|
Posted by C. (http://symcbean.blogspot.c on July 18, 2008, 8:08 am
Please log in for more thread options
>
>
>
> > i want to implement a feature where a user searches with
> > a keyword and search results are displayed according to
> > the keyword or phrase entered by the user.
>
> Use an off-the-shelf search engine... I've used Sphider on a couple
> of occasions:
>
> http://www.sphider.eu/
>
> Cheers,
> NC
I'd recommend mnogo.
Certainly, as burgermeister01 wrote, what you propose is far from
being very efficient. You really want to index the keywords separately
from querying the data.
If its just a quick though, then a whole search engine might be
overkill - if you're running on Unix/Linux/Posix, then exec something
like:
find /document/root/ -regex '(.html)|(.php)' grep -H '$searchword' {}
\;
C.
|