Re: Hits sorted

2005-10-13 Thread Miles Barr
On Thu, 2005-10-13 at 11:58 +0200, Daniel Cortes wrote: > Solved, only replace > new Sort(new SortField("DATE",SortField.INT, true))); Alternatively you could use the DateField class: http://lucene.apache.org/java/docs/api/org/apache/lucene/document/DateField.html to translate your date's into L

Re: Hits sorted

2005-10-13 Thread Daniel Cortes
Solved, only replace new Sort(new SortField("DATE",SortField.INT, true))); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Hits sorted

2005-10-13 Thread Daniel Cortes
/org/apache/lucene/search/Searcher .html#search(org.apache.lucene.search.Query,%20org.apache.lucene.search. Sort) Aviran http://www.aviransplace.com -Original Message- From: Daniel Cortes [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 11, 2005 2:58 PM To: java-user@lucene.apache.org

Re: Hits sorted

2005-10-13 Thread Daniel Cortes
pi/org/apache/lucene/search/Searcher .html#search(org.apache.lucene.search.Query,%20org.apache.lucene.search. Sort) Aviran http://www.aviransplace.com -Original Message- From: Daniel Cortes [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 11, 2005 2:58 PM To: java-user@lucene.apache.org Subj

RE: Hits sorted

2005-10-11 Thread Mordo, Aviran (EXP N-NANNATEK)
PROTECTED] Sent: Tuesday, October 11, 2005 2:58 PM To: java-user@lucene.apache.org Subject: Hits sorted Hi everybody, I have a problem when I find all the documents added in the last days in my index. It works good but I want show this results sorted. What I have to do? My code is this: private

Hits sorted

2005-10-11 Thread Daniel Cortes
Hi everybody, I have a problem when I find all the documents added in the last days in my index. It works good but I want show this results sorted. What I have to do? My code is this: private RangeQuery findINTODates(int days) { Term from; Term to; Calendar calendar =