You can do a search, sort by the special _docid_ "field" (underscores
mandatory) descending and the top documents listed will be the latest
added.
Like this, un-url-encoded: q=*:*&sort=_docid_ desc
Erik
On Jan 22, 2010, at 3:39 AM, Sandeep Tagore wrote:
Thanks a lot Erik. Is there any other alternate way?
Thanks a lot for your response.
Regards,
Sandeep
You'll be able to find them only after a commit.
One way to do this is index a timestamp with every document, and find
the latest ones using that field. There's an example of an automatic
timestamp field in the example schema.
Erik
--
View this message in context:
http://old.nabble.com/Find-newly-added-documents-tp27254813p27270104.html
Sent from the Solr - User mailing list archive at Nabble.com.