lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luis Alves (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-995) Add open ended range query syntax to QueryParser
Date Tue, 25 Aug 2009 07:51:59 GMT

    [ 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


Mime
View raw message