in reply to Re: Offsite Perlmonks Search Engine
in thread Offsite Perlmonks Search Engine
I could have the "word search" behavior be optional. The current matching (done in the SQL) is similar to /\b$term\b/ but it would be easy enough to let the user turn off those boundary assertions.
The "Terms are split on spaces after non-word chars are stripped" is a roundabout way of saying that I'm ignoring quotes. Searching for dogs cats and "perl 6" will get broken down into five terms. dogs, cats, and, perl, 6 '6' gets tossed out because its too short, 'and' is one of the stop words so it is removed as well. That leaves us with dogs, cats, perl and a bunch of bad results. The underscore gives us an easy way out, ala perl_6.
Thanks for the feedback... I'll probably incorporate the optional "word search" feature in the next rev.
Update: A partial word matching option has now been implemented...
-Blake
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Offsite Perlmonks Search Engine
by RMGir (Prior) on Jul 07, 2002 at 14:43 UTC | |
|
Re: Re: Re: Offsite Perlmonks Search Engine
by Elian (Parson) on Jul 08, 2002 at 01:34 UTC |