Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 62652 invoked from network); 7 Nov 2002 19:21:12 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 7 Nov 2002 19:21:12 -0000 Received: (qmail 27360 invoked by uid 97); 7 Nov 2002 19:21:47 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 27231 invoked by uid 97); 7 Nov 2002 19:21:44 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 27113 invoked by uid 98); 7 Nov 2002 19:21:41 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-Id: <818623B5FD23D51193200002B32C076106FE48B7@excsrv44.mayo.edu> From: "Armbrust, Daniel C." To: 'Lucene Users List' Subject: RE: Date can't be before 1970? Date: Thu, 7 Nov 2002 13:16:35 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N You can also still use a date filter... You just have to write your own (this is what we did) Its basically a copy of the current date filter... With a couple of minor changes. Dan -----Original Message----- From: Peter Carlson [mailto:carlson@bookandhammer.com] Sent: Monday, November 04, 2002 12:06 AM To: Lucene Users List Subject: Re: Date can't be before 1970? The other option that some people have used is to not use the DateField and just create your own format following the yyyyMMdd format So 20020101 for Jan 1, 2002 Note that you cannot use the Date Filter to filter dates. However you can use the built in range query (see query syntax for more details). So to search for all dates in 2002 in the pubDate field you can use pubDate:[20020101 - 20021231] Note the space on either side of the dash (-). Since this is just a string, it is not affected by the 1970 issues. I hope this helps. --Peter On Sunday, November 3, 2002, at 10:01 PM, Herman Chen wrote: > Hi, > > I noticed that DateField.dateToString does not allow dates before > 1970. Is the limitation caused by java's Date or by the way it needs > to be encoded for the index. What is the suggested solution to deal > with dates prior to 1970? Thanks. > > -- > Herman -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: