Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 53721 invoked from network); 11 May 2007 22:39:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 May 2007 22:39:09 -0000 Received: (qmail 83225 invoked by uid 500); 11 May 2007 22:39:07 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 83193 invoked by uid 500); 11 May 2007 22:39:07 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 83181 invoked by uid 99); 11 May 2007 22:39:07 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 May 2007 15:39:07 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [169.229.70.167] (HELO rescomp.berkeley.edu) (169.229.70.167) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 May 2007 15:38:58 -0700 Received: by rescomp.berkeley.edu (Postfix, from userid 1007) id 82D615B763; Fri, 11 May 2007 15:38:36 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by rescomp.berkeley.edu (Postfix) with ESMTP id 7FDBD7F403 for ; Fri, 11 May 2007 15:38:36 -0700 (PDT) Date: Fri, 11 May 2007 15:38:36 -0700 (PDT) From: Chris Hostetter To: java-user@lucene.apache.org Subject: Re: Numerical fields In-Reply-To: <200705111816.13473.hans-christian.stadler@psi.ch> Message-ID: References: <200704291232.l3TCWepJ012432@idlewild.ccnep.com.np> <200705111816.13473.hans-christian.stadler@psi.ch> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : I know that usually one has to index such fields as text with : the property a > b => lex(text(a)) > lex(text(b)) and devise : the text(n) transformation appropriately. : : What I'm looking for is an enhancement which would eliminate : the a -> text(a) transformation or simplify it. Is it necessary f.ex. the transformation has to happen either way, so the best we can do is create it and put it in a utility ... NumberTools already meets this need for longs, but there are some other utils in Solr that could be promoted if someone wants to do so. : to implement the above query as a range query : : 100 <= myNumericalField <= 999999999999999999999999..... that's just not true ... ConstantScoreRangeQuery can support open ended ranges -- there is no need to specify an artificial uper bound. -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org