lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wettin <karl.wet...@gmail.com>
Subject Re: Find "latest" document (before a certain date)
Date Tue, 28 Aug 2007 16:06:01 GMT

28 aug 2007 kl. 17.48 skrev Per Lindberg:

>
> Now, I want to search the content, and return only the
> LATEST found document with each id. To complicate
> things a bit, I want the latest before a given date. In other
> words, for each id pick only the one with the highest date
> less than x.

Given you added documents with version time stamp in chronological
order, how about using a RangeQuery and pick the hit with the
greatest document number?


-- 
karl



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message