From: Gilles D. <gr...@sc...> - 2003-01-21 18:29:04
|
According to Mike Holderness: > Systems Librarian <po...@li...> wrote: > > I have been getting some strange results on htdig and have been unable > > to determine why. Any suggestions will be appreciated! > > > > Try searching TAX FORMS at > > http://lib11.library.vanderbilt.edu/diglib/a-to-z.pl. Dale Poulter > > In that page you have > <input type="hidden" name="method" value="ALL"> > > In subsequent pages you have > <select name="method"><option value="and">All /*...*/ > which is correct for the name and CASE of the method value, and works. > > I've not read the code to find out whether the match_method > setting in your config file takes effect when you specify > an invalid value, or whether the invalid value triggers a > hard-coded default to "or". So best fix the .pl :-) Good catch, Mike. You're more observant than the rest of us. It helps to be more specific in a problem report about exactly what the problem is, or a lot of us will miss it. htsearch does indeed default to the "or" method, if the "method" input parameter or "match_method" attribute is not explicitly set to either "boolean" or "and" (lower-case only!). By changing the "ALL" in the URL of the results page from the above search, to "and", the number of matches dropped from 530 to 37, which is likely closer to what Dale wanted. Is that right, Dale, or is there another unspecified problem that's escaped all our eyes? If it's phrase matching you're after, see http://www.htdig.org/FAQ.html#q1.9 -- Gilles R. Detillieux E-mail: <gr...@sc...> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/ Dept. Physiology, U. of Manitoba Winnipeg, MB R3E 3J7 (Canada) |