[Pmwiki-users] enhanced search?

Patrick R. Michaud pmichaud at pobox.com
Tue Apr 29 19:20:03 CDT 2003


On Tue, 29 Apr 2003, Jonathan Scott Duff wrote:

> So ... what if I want to find occurences of "pineapple", "grapples",
> and "applet" when searching for "apple"?  Could you make it so that
> search for "apple" (with the quotes) forces word boundaries but apple
> (sans quotes) does not?

Welllll, that doesn't fit with any standard I'm aware of, and I'll
probably want to reserve the quotes to indicate phrase searches (as
most searches already do).  My best suggestion would be to use asterisks
for stemming, so that

   apple	finds "apple" but not "pineapple" or "applet"
   appl*        finds "apple", "apples", "applet", and "application" 
                but not "pineapple" or "pineapples"
   *apple       finds "apple", "crabapple", "pineapple", and "grapple" 
                but not "applet" or "apples".

All searches would continue to be case insensitive (as they are now).

Pm





More information about the pmwiki-users mailing list