Return-Path: Delivered-To: apmail-lucene-general-archive@www.apache.org Received: (qmail 79904 invoked from network); 2 Dec 2010 11:45:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Dec 2010 11:45:21 -0000 Received: (qmail 35140 invoked by uid 500); 2 Dec 2010 11:45:21 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 35082 invoked by uid 500); 2 Dec 2010 11:45:21 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Received: (qmail 35074 invoked by uid 99); 2 Dec 2010 11:45:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Dec 2010 11:45:20 +0000 X-ASF-Spam-Status: No, hits=4.0 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [85.25.71.29] (HELO mail.troja.net) (85.25.71.29) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Dec 2010 11:45:15 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.troja.net (Postfix) with ESMTP id DF22845FDB1 for ; Thu, 2 Dec 2010 12:44:54 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.troja.net Received: from mail.troja.net ([127.0.0.1]) by localhost (megaira.troja.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X1Thdg3m6XQe for ; Thu, 2 Dec 2010 12:44:49 +0100 (CET) Received: from VEGA (unknown [82.113.121.3]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.troja.net (Postfix) with ESMTPSA id 9DDFE45FF1A for ; Thu, 2 Dec 2010 12:44:45 +0100 (CET) From: "Uwe Schindler" To: References: <1291287996721-2005302.post@n3.nabble.com> In-Reply-To: <1291287996721-2005302.post@n3.nabble.com> Subject: RE: Date Format to index in lucene Date: Thu, 2 Dec 2010 12:44:57 +0100 Message-ID: <004d01cb9216$67559970$3600cc50$@thetaphi.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: AQIeRPuLwldUV8rxLzMKBmifOdZRjZLnn7CQ Content-Language: de If you want full precision, index it as UNIX epoch timestamp as returned by Date#getTime() as a LONG. This is also used by Apache Solr. ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: uwe@thetaphi.de > -----Original Message----- > From: Romi [mailto:romijain3186@gmail.com] > Sent: Thursday, December 02, 2010 12:07 PM > To: general@lucene.apache.org > Subject: Date Format to index in lucene > > > Hi, > I am using lucene to search date ranges. I want to know how should I take > date to index it. When I want to index it in all resolution ie. > Year,Month,Day,Hour,Minute,second,Millisecond > > -- > View this message in context: http://lucene.472066.n3.nabble.com/Date- > Format-to-index-in-lucene-tp2005302p2005302.html > Sent from the Lucene - General mailing list archive at Nabble.com.