[ https://issues.apache.org/jira/browse/LUCENE-995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adriano Crestani updated LUCENE-995: ------------------------------------ Attachment: LUCENE-995_09_21_2009.patch The patch adds open ended range query to oal.queryParser.QueryParser. By default it's disabled and may be enabled invoking setEnableOpenEndedRangeQueries. I also added the capability to redefine the open ended token, the default is '*'. I also added some test cases. > 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: Luis Alves > Priority: Minor > Fix For: 3.1 > > 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: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org