Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 70999 invoked from network); 25 Aug 2009 07:51:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Aug 2009 07:51:56 -0000 Received: (qmail 40958 invoked by uid 500); 25 Aug 2009 07:52:21 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 40861 invoked by uid 500); 25 Aug 2009 07:52:21 -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 40853 invoked by uid 99); 25 Aug 2009 07:52:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Aug 2009 07:52:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Aug 2009 07:52:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5739E234C04C for ; Tue, 25 Aug 2009 00:51:59 -0700 (PDT) Message-ID: <2051607530.1251186719352.JavaMail.jira@brutus> Date: Tue, 25 Aug 2009 00:51:59 -0700 (PDT) From: "Luis Alves (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-995) Add open ended range query syntax to QueryParser In-Reply-To: <1926149.1189514021139.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12747278#action_12747278 ] Luis Alves commented on LUCENE-995: ----------------------------------- I propose to improve the syntax to allow the following "date>1990" "date<1990" "date=1990" "date>=1990" "date<=1990" What do you guys think? We probably could do it at same time we implement LUCENE-1823 > Add open ended range query syntax to QueryParser > ------------------------------------------------ > > Key: LUCENE-995 > URL: https://issues.apache.org/jira/browse/LUCENE-995 > Project: Lucene - Java > Issue Type: Improvement > Components: QueryParser > Affects Versions: 1.9, 2.0.0, 2.1, 2.2 > Reporter: Jonas Gorski > Priority: Minor > > The QueryParser fails to generate open ended range queries. > Parsing e.g. "date:[1990 TO *]" gives zero results, > but > ConstantRangeQuery("date","1990",null,true,true) > does produce the expected results. > "date:[* TO 1990]" gives the same results as ConstantRangeQuery("date",null,"1990",true,true). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org