Re: Find newly added documents

2010-01-23 Thread Simon Rosenthal
"newly added" is a bit vague. Do you mean "since last Sunday" ? "between the last 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

Re: Find newly added documents

2010-01-22 Thread Erik Hatcher
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 t

Re: Find newly added documents

2010-01-22 Thread Sandeep Tagore
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

Re: Find newly added documents

2010-01-21 Thread Erik Hatcher
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 On Jan 21, 2010, at 4:16 AM, Sandeep Tagore wrot