Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 40615 invoked from network); 7 Feb 2005 20:41:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Feb 2005 20:41:59 -0000 Received: (qmail 75726 invoked by uid 500); 7 Feb 2005 20:41:55 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 75703 invoked by uid 500); 7 Feb 2005 20:41:55 -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 75689 invoked by uid 99); 7 Feb 2005 20:41:55 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from 87.52.220-216.q9.net (HELO mail.futurebrandexp.com) (216.220.52.87) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 07 Feb 2005 12:41:53 -0800 Received: from p001002 ([204.225.84.27]) by mail.futurebrandexp.com with Microsoft SMTPSVC(5.0.2195.5329); Mon, 7 Feb 2005 15:46:08 -0500 Message-ID: <015c01c50d56$0cc19950$7703d00a@hypermedia.com> From: "Luke Shannon" To: "Lucene Users List" References: <20050204165525.23042.qmail@web30201.mail.mud.yahoo.com> <03d601c50b1c$ae6ff5d0$7703d00a@hypermedia.com> <1081c493bd80a555f390191c641f9c45@ehatchersolutions.com> <5425d345fc609349f5962d3e0e31b46d@ehatchersolutions.com> Subject: RangeQuery With Date Date: Mon, 7 Feb 2005 15:46:08 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-OriginalArrivalTime: 07 Feb 2005 20:46:08.0329 (UTC) FILETIME=[0CD0DB90:01C50D56] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi; I am working on a set of queries that allow you to find modification dates before, after and equal to a given date. Here are some of the before queries I have been playing with. I want a query that pull up dates modified before Nov 11 2004: Query query = new RangeQuery(null, new Term("modified", "11/11/04"), false); This one doesn't work. It turns up all the documents in the index. Query query = QueryParser.parse("modified:[1/1/00 TO 11/11/04]", "subject", new StandardAnalyzer()); This works but I don't like having to specify the begin date like this. Query query = QueryParser.parse("modified:[null TO 11/11/04]", "subject", new StandardAnalyzer()); This throws an exception. How are other doing a Query like this? Thanks, Luke --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org