Re: precision double sortable String

2007-04-02 Thread Yonik Seeley
On 4/2/07, MB Leasing <[EMAIL PROTECTED]> wrote: In Solr, NumberUtils.double2sortableStr prints out a literal question mark character '?' . You shouldn't try to print it out... it's essentially binary :-) -Yonik - To unsubscr

Re: precision double sortable String

2007-04-02 Thread Peter W.
One more thing... It could optionally be indexed and stored as a String then contents of the Hits object could be placed into a Collection with a comparator that sorts double values in reverse order. Regards, Peter W. On Apr 2, 2007, at 12:02 PM, "Peter W." <[EMAIL PROTECTED]> wrote: Hi

precision double sortable String

2007-04-02 Thread MB Leasing
Hi, I'm trying to turn a double with decimal point precision fifteen digits to the left into a sortable String for Lucene (.346210426731253). NumberTools is for longs so doesn't apply. In Solr, NumberUtils.double2sortableStr prints out a literal question mark character '?' . I tried making it