Order the index by timestamp field and Get n documents

2008-11-09 Thread Cool The Breezer
Hi, In my index, there is a field called timestamp which is long value of date. I am trying to get sort all documents by timestamp and get N documents. I am trying to find a way to create a query like "timestamp > 0" and then order the result by timestamp and get N fields. However I am not a

Re: Order the index by timestamp field and Get n documents

2008-11-10 Thread Cool The Breezer
;timestamp",true); Filter dupFilter = new DuplicateFilter("id"); Hits hits = searcher.search(rangeQuery,dupFilter,sort); --- On Mon, 11/10/08, Cool The Breezer <[EMAIL PROTECTED]> wrote: > From: Cool The Breezer <[EMAIL PROTECTED]> > Subject: Order the in

Re: Order the index by timestamp field and Get n documents

2008-11-11 Thread 黄成
ts = searcher.search(rangeQuery,dupFilter,sort); > > > > > --- On Mon, 11/10/08, Cool The Breezer <[EMAIL PROTECTED]> wrote: > > > From: Cool The Breezer <[EMAIL PROTECTED]> > > Subject: Order the index by timestamp field and Get n documents > > T

Re: Order the index by timestamp field and Get n documents

2008-11-16 Thread Tomer Gabel
gt; For additional commands, e-mail: [EMAIL PROTECTED] > > > ----- -- http://www.tomergabel.com Tomer Gabel -- View this message in context: http://www.nabble.com/Order-the-index-by-timestamp-field-and-Get-n-documents-tp20414870p20523960.html Sent from the Lucene - Java Users