Sort does not work for me

2008-01-13 Thread Aron Sogor
Here is the document: MimeMessage mime = new MimeMessage(null, new FileInputStream(item .getMailFile())); document.add(new Field(FIELD_MAILID, item.getMailId().toString(), Field.Store.YES, Field.Index.UN_TOKENIZED)); docum

Re: Sort does not work for me

2008-01-14 Thread Aron Sogor
the query bellow with sort: Sort sort = new Sort(FIELD_RECEIVED,true); even if I do reverse=false the order of the hits does not really change. The question is why would that be. The dates are numbers that even is sorted as strings should order the same, and reverse should work. Aron Aron

Re: Sort does not work for me

2008-01-15 Thread Aron Sogor
Lucky guy who gets the same problem. Found the issue: http://issues.apache.org/jira/browse/LUCENE-463 Lucene see numbrs in the field and thinks it is an int... than overflows the int. Force the sort field to be a SortField.String. Aron Sogor wrote: Let me qualify my question: Sort is not