lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-995) Add open ended range query syntax to QueryParser
Date Fri, 22 Oct 2010 22:04:18 GMT

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

Yonik Seeley updated LUCENE-995:
--------------------------------

    Attachment: LUCENE-995.patch

Here's a draft patch (no tests yet, so I don't know if it works).
But the proposal is simple: * in a range query would be an open end.
"*" or \* would be ways to represent a literal asterisk instead of an open end.
The QP will now pass null for an open end to getRangeQuery().  This will match
the constructors on our actual range query objects.

> 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.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.
-
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


Mime
View raw message