Ok, Dan,
the matching of a specified pattern now it seems working. Maybe the variables 
didn't post the right string to htsearch. I saw that the pattern doesn't have 
to contain fullstops or other stuff like these. It works great just with words.
Anyway there's a bug that seems not going away: when you click on a new result 
page, the spaces, the quotes and other special chars in the search field will 
be converted as %20, %22, etc. etc..

You made a very good work with this wrapper. I studied the code and it's great. 

Pietro Palladino

Scrive Dan Langille <[EMAIL PROTECTED]>:

> On 28 Jul 2001, at 17:04, Pietro Palladino wrote:
> 
> > Hi Dan,
> > I'm your betatester ;-))) I discovered a new bug in your PHP wrapper:
> it
> > doesn't allow the search of a specific pattern. For example, try this
> > search on your site:
> > 
> > Method: All
> > Search: "the comment"
> > 
> > Htdig will give U all the results concerning the word 'comment'
> instead of 
> > the ones containing the pattern 'the comment'. 
> 
> Go to http://www.htdig.org/mailarchive.html and search on "various 
> readers".  You don't get matches on exact phrases.
> 
> > It also returns a backslash
> > in the field 'Search'. I also tried to search that pattern with
> singles
> > quotes ( 'the comment') but I obtained the same results plus the
> field
> > Search filled with \'the comment\'.
> 
> Well done.  Fixed with this change to search-form.php: 
> 
> <input type="text" size="30" name="words" value="'. 
> htmlspecialchars(StripSlashes($words)) . '">
> 
> 
> > You'll get the same results with "Any".
> > 
> > Now try the same search with the Method Boolean....you'll get an
> error
> > 'cause htdig "see" the pattern as 'thecomment' (in this test the
> field
> > Search was filled by a backslash). HtDig in itself works fine. If you
> try a
> > search like this on HtDig site, you'll get the right output. Maybe
> there's
> > something in your wrapper that doesn't strip the backslashes but
> strips the
> > spaces (or parses the pattern and it ALWAYS splits it in its
> component
> > words to pass them to htsearch).
> 
> You get the same error at http://www.htdig.org/mailarchive.html
> 
> > 
> > Let me know....and don't forget to send me the changes to the code
> :-)
> > 
> > Many thanks.
> > 
> > Pietro Palladino
> > 
> 
> 
> 
> -- 
> Dan Langille
> pgpkey - finger [EMAIL PROTECTED] | http://unixathome.org/finger.php
> 

_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to