tag 484458 + wontfix thanks On Wed, Jun 04, 2008 at 02:39:24AM -0400, Joey Hess wrote: > When using xapian in a localised system, it makes sense to take the > value of LANG and feed the language code from it into the stemmer when > chosing the stemming language.
Hmm, an interesting idea. It might make sense for desktop applications, but for a web site it's often not going to be appropriate, and I believe this feature would be rather harmful in some cases. For example, if I run omindex as myself, it would take my locale for stemming when building an index, but omega running as a CGI wouldn't pick up this setting. But then when I try to debug this by running omega by hand in debug mode, it would work! The problem is that the stemmer used is part of the database format in many applications, so picking up the setting indirectly like this is problematic. So I think it's better just to let applications decide if they want to select a stemmer based on $LANG. > And sometimes, this even works, although I'm not sure where it's > documented that it does. It's not documented, and I can't see how it can ever "work" as we never look at $LANG in the Xapian code. Cheers, Olly -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]