Re: [htdig] prefix_match_character (*) used


Subject: Re: [htdig] prefix_match_character (*) used
From: Gilles Detillieux (grdetil@scrc.umanitoba.ca)
Date: Fri Sep 08 2000 - 08:48:42 PDT


According to Huby, Patrick:
> Thanks very much Gilles.
>
> I modified as follows:
>
> " search_algorithm: exact:1 endings:0.1 prefix:1 "
>
> and apparently it works fine.....

Ah! I just remembered a strange interaction between this attribute
and locales. On many platforms, if you select a locale that defines
a different floating decimal format (e.g. fr or fr_FR), then you must
use that locale's convention for specifying fractional weights for the
algorithms. This is the case on any system where the atof() function
is locale-aware. You may want to try:

    " search_algorithm: exact:1 endings:0,1 prefix:0,1 "

to get a lower weight for prefix matches, and to get the endings
algorithm to work properly. However, for this to work correctly, you
need to remove the final comma (in quotes) from the following line in
htsearch/htsearch.cc:

    StringList algs(config["search_algorithm"], " \t,");

or apply the ftp://ftp.ccsf.org/htdig-patches/3.1.5/accents.5 patch which
includes this fix as well as Robert Marchand's accents fuzzy algorithm.

> Merci encore (je pense que tu connais bien la langue franšaise...)
>
> Patrick

Passablement bien, oui.

-- 
Gilles R. Detillieux              E-mail: <grdetil@scrc.umanitoba.ca>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

------------------------------------ To unsubscribe from the htdig mailing list, send a message to htdig-unsubscribe@htdig.org You will receive a message to confirm this. List archives: <http://www.htdig.org/mail/menu.html> FAQ: <http://www.htdig.org/FAQ.html>



This archive was generated by hypermail 2b28 : Fri Sep 08 2000 - 08:51:18 PDT