Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 52867 invoked from network); 23 Jan 2010 19:57:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Jan 2010 19:57:19 -0000 Received: (qmail 86974 invoked by uid 500); 23 Jan 2010 19:57:16 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 86929 invoked by uid 500); 23 Jan 2010 19:57:16 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 86919 invoked by uid 99); 23 Jan 2010 19:57:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jan 2010 19:57:16 +0000 X-ASF-Spam-Status: No, hits=3.6 required=10.0 tests=FORGED_YAHOO_RCVD,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mtnest46@gmail.com designates 209.85.216.186 as permitted sender) Received: from [209.85.216.186] (HELO mail-px0-f186.google.com) (209.85.216.186) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jan 2010 19:57:08 +0000 Received: by pxi16 with SMTP id 16so1612510pxi.29 for ; Sat, 23 Jan 2010 11:56:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=IZ+bscMX7GTT7IGSSbMwqJBOo2/VB4NvFsA6Teocwv0=; b=UedRg67iLgUP3LmmuTC2K3FhjqJgpfyhHxVl+NqLZMWjplz3E8YBHQbAMSXc5bv7bP OYbT5OSaPf+uovdZL1q3/NFLboVi6DzjN3prYQEynmJX1vw1ciwPHWu+HRdPkvc37fr3 CzjlkB5m3Cej2ndhTGN14r8CEmgCKhPPNTD10= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=Wpx5dlAtZl38crxsYfVRBx7Yy4RvErZrgulyo597i4BRHX7pd+YeKPfjedfMi6CaTe 9AehbgBTTD/ix5dWOSaZGVyOnUvXJBN0t/iAPkSU9iME5cgJTW0ZBS8mzvKo1hUR4qA4 X5V4qVdyjjf1GxPzZyKGI8dDtRsIhsQs1iKcw= MIME-Version: 1.0 Sender: mtnest46@gmail.com Received: by 10.141.23.13 with SMTP id a13mr3186903rvj.247.1264276608033; Sat, 23 Jan 2010 11:56:48 -0800 (PST) In-Reply-To: <6E873A13-D07B-40D1-9A2E-54786A5988B9@gmail.com> References: <27254813.post@talk.nabble.com> <5799CBD8-9364-49A2-849B-72D6407E7EB8@gmail.com> <27270104.post@talk.nabble.com> <6E873A13-D07B-40D1-9A2E-54786A5988B9@gmail.com> Date: Sat, 23 Jan 2010 14:56:48 -0500 X-Google-Sender-Auth: 5f2575a110c6fdc0 Message-ID: Subject: Re: Find newly added documents From: Simon Rosenthal To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=000e0cd1b71a1ea68c047dda56cc --000e0cd1b71a1ea68c047dda56cc Content-Type: text/plain; charset=ISO-8859-1 "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 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. >> >> > --000e0cd1b71a1ea68c047dda56cc--