"newly added" is a bit vague.  Do you mean "since last Sunday" ? "between
the last <commit> and the one before that" ? Also, do you need to
distinguish between updated and newly added documents ?

Perhaps you could be more specific about the use case.

-Simon

On Fri, Jan 22, 2010 at 4:25 AM, Erik Hatcher <erik.hatc...@gmail.com>wrote:

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

Reply via email to