On Jan 19, 2004, at 10:31 AM, Stefano Mazzocchi wrote:
A while ago, thinking about this, I proposed the addition of a numerical namespace to the lucene mailing list but the suggesting didn't catch up [I also have the impression they didn't get my point, but was low priority so I dropped the subject]

I don't recall that thread, but Lucene can index numerical information as long as you take care to make sure it is lexicographically ordered. For example, I often index dates as YYYYMMDD format so that they are ordered "alphabetically".


Lucene does not provide any built-in mechanisms for turning a number into such a lexicographically ordered string, but it does for timestamps. It would only be a few lines of custom code to convert back and forth, but Lucene deals with text only, not numbers directly.

Erik


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to