You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2010/10/22 23:38:21 UTC

[jira] Commented: (LUCENE-995) Add open ended range query syntax to QueryParser

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

Yonik Seeley commented on LUCENE-995:
-------------------------------------

FYI, this last patch has the same issue as Solr does, described in SOLR-2189.
I'm going to take a quick crack at fixing it in the QP, before getRangeQuery() is called.

> 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
>            Assignee: Yonik Seeley
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: LUCENE-995_09_21_2009.patch
>
>
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org