Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 10348 invoked from network); 24 Nov 2003 17:57:40 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 24 Nov 2003 17:57:40 -0000 Received: (qmail 77106 invoked by uid 500); 24 Nov 2003 17:57:28 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 77079 invoked by uid 500); 24 Nov 2003 17:57:28 -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 77066 invoked from network); 24 Nov 2003 17:57:27 -0000 Received: from unknown (HELO mta1.lbl.gov) (128.3.41.24) by daedalus.apache.org with SMTP; 24 Nov 2003 17:57:27 -0000 Received: from mta1.lbl.gov (localhost [127.0.0.1]) by mta1.lbl.gov (8.12.10/8.12.10) with ESMTP id hAOHvRfw009162 for ; Mon, 24 Nov 2003 09:57:27 -0800 (PST) Received: from lbl.gov (imapb.lbl.gov [128.3.41.51]) by mta1.lbl.gov (8.12.10/8.12.10) with ESMTP id hAOHvQbI009159 for ; Mon, 24 Nov 2003 09:57:26 -0800 (PST) From: DMGoodstein@lbl.gov Received: from [198.129.90.96] by imapb.lbl.gov (mshttpd); Mon, 24 Nov 2003 09:57:26 -0800 To: Lucene Users List Message-ID: <574bb562c3.562c3574bb@lbl.gov> Date: Mon, 24 Nov 2003 09:57:26 -0800 X-Mailer: iPlanet Messenger Express 5.2 HotFix 1.21 (built Sep 8 2003) MIME-Version: 1.0 Content-Language: en Subject: 1.2 javadoc X-Accept-Language: en Priority: normal Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Is there a url that will take me to the javadocs for Lucene 1.2, rather than 1.3-rc2? thanks, --David ----- Original Message ----- From: Dion Almaer Date: Monday, November 24, 2003 6:07 am Subject: RE: Dates and others > Erik - > > Spot on. I should have listened to your advice from the talk and > just used YYYYMMDD :) > > Everything works nicely now that I do the conversion. > > Thanks for the great ideas. > > Dion > > > -----Original Message----- > > From: Erik Hatcher [erik@ehatchersolutions.com] > > Sent: Sunday, November 23, 2003 11:41 PM > > To: Lucene Users List > > Subject: Re: Dates and others > > > > On Sunday, November 23, 2003, at 03:33 PM, Dion Almaer wrote: > > > This leads me to another issue actually. On certain range > > queries I > > > get exceptions: > > > > > > Query: modifieddate:[1/1/03 TO 12/31/03] > > > > > > org.apache.lucene.search.BooleanQuery$TooManyClauses > > > > I'm guessing you're using Field.Keyword(String, Date) for > > modifieddate? > > The date field stuff in Lucene is really a timestamp, and > > doing a range query enumerates all the terms for that field > > in that ranging making a big ol' boolean OR query of all the > > individual ones. Since you want this to be just a date, use > > Field.Keyword(String, "YYYYMMDD") instead. But.... you'll > > want to subclass QueryParser and override getRangeQuery to do > > the right date format parsing from "MM/DD/YYYY" > > into "YYYYMMDD" rather than the internal Date representation > > Lucene uses for "date" fields. > > > > Erik > > > > > > ------------------------------------------------------------------ > --- > > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: lucene-user-help@jakarta.apache.org > > > > > > > > > -------------------------------------------------------------------- > - > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: lucene-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org