From lucene-user-return-13062-apmail-jakarta-lucene-user-archive=jakarta.apache.org@jakarta.apache.org Mon Feb 07 21:15:46 2005 Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 56461 invoked from network); 7 Feb 2005 21:15:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Feb 2005 21:15:46 -0000 Received: (qmail 25985 invoked by uid 500); 7 Feb 2005 21:15:41 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 25966 invoked by uid 500); 7 Feb 2005 21:15:41 -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 25953 invoked by uid 99); 7 Feb 2005 21:15:41 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_40_50,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mspmail2.stellent.com (HELO mspmail2.stellent.com) (12.40.185.2) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 07 Feb 2005 13:15:40 -0800 Received: from [10.10.20.20] ([10.10.20.20]) by mspmail2.stellent.com (8.11.6+Sun/8.11.5) with ESMTP id j17LFaj23990 for ; Mon, 7 Feb 2005 15:15:36 -0600 (CST) Subject: Re: RangeQuery With Date From: Luke Francl To: Lucene Users List In-Reply-To: <015c01c50d56$0cc19950$7703d00a@hypermedia.com> References: <20050204165525.23042.qmail@web30201.mail.mud.yahoo.com> <03d601c50b1c$ae6ff5d0$7703d00a@hypermedia.com> <1081c493bd80a555f390191c641f9c45@ehatchersolutions.com> <5425d345fc609349f5962d3e0e31b46d@ehatchersolutions.com> <015c01c50d56$0cc19950$7703d00a@hypermedia.com> Content-Type: multipart/alternative; boundary="=-h0zB39De8vnGdc53uzjh" Message-Id: <1107810923.12259.10.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 07 Feb 2005 15:15:23 -0600 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --=-h0zB39De8vnGdc53uzjh Content-Type: text/plain Content-Transfer-Encoding: 7bit Your dates need to be stored in lexicographical order for the RangeQuery to work. Index them using this date format: YYYYMMDD. Also, I'm not sure if the QueryParser can handle range queries with only one end point. You may need to create this query programmatically. Regards, Luke Francl --=-h0zB39De8vnGdc53uzjh--