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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

JIRA jira@apache.org

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

Ingo Renner commented on LUCENE-995:
------------------------------------

As I said I'm not yet that familiar with Java so I actually had to look up what that .jj file is about and now I understand that QueryParser.java actually is compiled/generated from the .jj file using javacc.

I don't know where the other changes come from, all I did was basically applying the 4.x patch and fixing incompatibilities manually.

Regarding the asterisk, could it be that this is related to SOLR-2189 ?
               

> 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: core/queryparser
>    Affects Versions: 1.9, 2.0.0, 2.1, 2.2
>            Reporter: Jonas Gorski
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: LUCENE-995-backport-3x.patch, LUCENE-995.patch, LUCENE-995.patch, 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]