Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 67602 invoked from network); 25 Jun 2008 21:13:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jun 2008 21:13:00 -0000 Received: (qmail 28798 invoked by uid 500); 25 Jun 2008 21:12:50 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 28730 invoked by uid 500); 25 Jun 2008 21:12:50 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 28713 invoked by uid 99); 25 Jun 2008 21:12:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2008 14:12:50 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.69.42.181] (HELO radix.cryptio.net) (208.69.42.181) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2008 21:12:00 +0000 Received: by radix.cryptio.net (Postfix, from userid 1007) id 645D271C76A; Wed, 25 Jun 2008 14:12:19 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by radix.cryptio.net (Postfix) with ESMTP id 5EB1B71C6C9 for ; Wed, 25 Jun 2008 14:12:19 -0700 (PDT) Date: Wed, 25 Jun 2008 14:12:19 -0700 (PDT) From: Chris Hostetter To: Lucene Dev Subject: Re: How to do a query using less than or greater than In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : and how to use them? For a concrete example I'm looking to do a query : on a date field to find documents earlier than a specified date or : later than a specified date. Ex: date:( >20070101) or date: : (<20070101). I looked at the range query feature but it didn't appear : to cover this case. Anyone have any suggestions? RangeQuery (and ConstantScoreRangeQuery) can both cover this case by setting either the upper or lowe term to null. Incidently... http://people.apache.org/~hossman/#java-dev Please Use "java-user@lucene" Not "java-dev@lucene" Your question is better suited for the java-user@lucene mailing list ... not the java-dev@lucene list. java-dev is for discussing development of the internals of the Lucene Java library ... it is *not* the appropriate place to ask questions about how to use the Lucene Java library when developing your own applications. Please resend your message to the java-user mailing list, where you are likely to get more/better responses since that list also has a larger number of subscribers. -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org