I think that if you include the indexing timestamp in the Document you create when indexing, you could sort on this and only pick the first 100.
Regards, Terry ----- Original Message ----- From: "Alan Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 27, 2004 8:02 AM Subject: searching only part of an index > Hi > > I wondered if anyone knows whether it is possible to search ONLY the 100 (or > whatever) most recently added documents to a lucene index? I know that once > I have all my results ordered by ID number in Hits I could then just display > the required amount, but I wondered if there is a way to avoid searching all > documents in the index in the first place? > > Many thanks > > Alan > > _________________________________________________________________ > Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
