lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonas Gorski (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-995) Parsed open ended range queries give zero results
Date Tue, 11 Sep 2007 13:21:32 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526450
] 

Jonas Gorski commented on LUCENE-995:
-------------------------------------

But if it doesn't support them, shouldn't it throw an ParseException? And why does "[* TO
x]" work? 
That looks inconsistent in behaviour to me.

> Parsed open ended range queries give zero results
> -------------------------------------------------
>
>                 Key: LUCENE-995
>                 URL: https://issues.apache.org/jira/browse/LUCENE-995
>             Project: Lucene - Java
>          Issue Type: Bug
>          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