Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 66991 invoked from network); 10 Jun 2004 16:53:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 Jun 2004 16:53:41 -0000 Received: (qmail 61986 invoked by uid 500); 10 Jun 2004 16:53:43 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 61882 invoked by uid 500); 10 Jun 2004 16:53: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 61839 invoked by uid 99); 10 Jun 2004 16:53:40 -0000 Received: from [192.33.215.142] (HELO expasy-ng.isb-sib.ch) (192.33.215.142) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 10 Jun 2004 09:53:40 -0700 Received: from [10.0.0.195] (lin-000 [192.33.215.254]) (authenticated bits=0) by expasy-ng.isb-sib.ch (8.12.10/8.12.8) with ESMTP id i5AGrK16010833 for ; Thu, 10 Jun 2004 18:53:20 +0200 Message-ID: <40C89209.9090303@isb-sib.ch> Date: Thu, 10 Jun 2004 18:53:29 +0200 From: Eric Jain User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lucene Users List Subject: Re: Open-ended range queries References: <40C8645C.2070708@isb-sib.ch> <7462A841-BAF3-11D8-9DDD-000393A564E6@ehatchersolutions.com> In-Reply-To: <7462A841-BAF3-11D8-9DDD-000393A564E6@ehatchersolutions.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-sib-MailScanner-Information: Please contact the ISP for more information X-sib-MailScanner: Found to be clean X-sib-MailScanner-From: eric.jain@isb-sib.ch X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > What would you suggest as a way to denote an open end? 'test:[TO 100] test[200 TO]' would seem okay, though this would preclude the string 'TO' from being used to begin or end of a range - but who cares? > FYI - You could override getRangeQuery on a custom QueryParser subclass > and implement this yourself. The problem I see here is that the QueryParser will most likely complain already before calling getRangeQuery. Nevertheless useful for padding numbers, e.g. '1' to '00000001'. --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org