Re: [htdig3-dev] Phrase searching bug in htdig-3.2.0b2-040200


Subject: Re: [htdig3-dev] Phrase searching bug in htdig-3.2.0b2-040200
From: Geoff Hutchison (ghutchis@wso.williams.edu)
Date: Mon Apr 10 2000 - 16:00:22 PDT


At 3:53 PM -0500 4/10/00, Gilles Detillieux wrote:
>Yes, the "NEAR" operator you suggested would be useful for a fuzzy
>phrase search, but until then, I think it makes sense to turn off the
>fuzzy matching for phrases. You'll still need to do something about
>that infinite loop, though. It seems to me that punctuation in a phrase
>should be ignored, and not parsed as expression syntax.

Well... A '(' character at this point in the code is no longer
punctuation. (This is why the parser dies.) Obviously I'll test out
the fix carefully, but I don't think it will be possible to get an
infinite loop this way. For example, anything besides a '(' character
shouldn't provide problems at all since it's ignored by the parser.

Granted, the parser shouldn't be using characters at all since
someone searching for "&test" doesn't want that confused with "AND
test" but IMHO, that's *way* beyond a simple fix.

-Geoff

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
htdig3-dev-unsubscribe@htdig.org
You will receive a message to confirm this.



This archive was generated by hypermail 2b28 : Mon Apr 10 2000 - 13:52:13 PDT