Re: Sorting on dates using long

2006-10-06 Thread Yonik Seeley
On 10/6/06, Björn Ekengren <[EMAIL PROTECTED]> wrote: I changed to RangeFilter and now everything works fine. I havn't noticed any change in performance so I'm happy. Strange with the constantrangequery though... It is strange. If you can reproduce an error, please file a bug with the test c

RE: Sorting on dates using long

2006-10-06 Thread Björn Ekengren
6 17:06 To: java-user@lucene.apache.org Subject: Re: Sorting on dates using long On 10/5/06, Björn Ekengren <[EMAIL PROTECTED]> wrote: > I am trying to get sort by date to work. The dates are of form MMddhhmm > and it seems that sort sees them as Integers and discards the last fo

Re: Sorting on dates using long

2006-10-05 Thread Yonik Seeley
On 10/5/06, Björn Ekengren <[EMAIL PROTECTED]> wrote: I am trying to get sort by date to work. The dates are of form MMddhhmm and it seems that sort sees them as Integers and discards the last four numbers since an integer isn't large enough. I tried using SortField.STRING instead but then

Sorting on dates using long

2006-10-05 Thread Björn Ekengren
Hello, I am trying to get sort by date to work. The dates are of form MMddhhmm and it seems that sort sees them as Integers and discards the last four numbers since an integer isn't large enough. I tried using SortField.STRING instead but then constantrangequery breaks (date:[200501010101 TO