Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 46A79B9DB for ; Fri, 20 Jan 2012 13:16:57 +0000 (UTC) Received: (qmail 36706 invoked by uid 500); 20 Jan 2012 13:16:53 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 36632 invoked by uid 500); 20 Jan 2012 13:16:52 -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 36624 invoked by uid 99); 20 Jan 2012 13:16:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jan 2012 13:16:52 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tommaso.teofili@gmail.com designates 209.85.210.48 as permitted sender) Received: from [209.85.210.48] (HELO mail-pz0-f48.google.com) (209.85.210.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jan 2012 13:16:46 +0000 Received: by dajz8 with SMTP id z8so430782daj.35 for ; Fri, 20 Jan 2012 05:16:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=RBlYlcu4S7+ut93um02dFNPibnfO9hiUmF0TsMgfzNs=; b=KM8meal1GwX8QFsdC7Ha2tIRz0daAg+ORKFTYZd6f3WbQ1M8FfPNG3yqAOyOGIK2Yv 6dW6icN5me7xr+c9+9cv1aasKNGugUM0UN1dX4c/8esufEjGBgqB+/nC0WXAa8BJfS82 GjETK2h7+VclMpLD0mCq04IG9Vm7Y5uoY8Rp8= Received: by 10.68.74.69 with SMTP id r5mr62135977pbv.118.1327065386176; Fri, 20 Jan 2012 05:16:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.154.9 with HTTP; Fri, 20 Jan 2012 05:15:44 -0800 (PST) In-Reply-To: References: From: Tommaso Teofili Date: Fri, 20 Jan 2012 14:15:44 +0100 Message-ID: Subject: Re: How to get the time document was indexed? To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=bcaec54693e5efd02604b6f57c56 --bcaec54693e5efd02604b6f57c56 Content-Type: text/plain; charset=ISO-8859-1 Hi Alex, you can create a field in the schema.xml of type date or tdate called (something like) idx_timestamp and set its default option to NOW then you won't have to add any extra fields to the documents because it will be automatically created when documents are indexed. Hope it helps. Tommaso 2012/1/20 ola nowak > Hi, > I want to be able to tell when the document was indexed, so I could > re-index it if it has changed in the meantime. Is there an easy way to do > this? Or I have to manualy put the date in the document and add a new field > in schema? > Thanks, > Alex > --bcaec54693e5efd02604b6f57c56--