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
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
;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
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