You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2011/01/26 13:27:46 UTC
[jira] Closed: (LUCENE-79) QueryParser: time not supported in date
ranges
[ https://issues.apache.org/jira/browse/LUCENE-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Uwe Schindler closed LUCENE-79.
-------------------------------
Resolution: Fixed
Assignee: (was: Otis Gospodnetic)
No response was sent on this issue, so I close it!
In general, the correct way to handle this is to override QueryParser#getRangeQuery factory and build the date range out of the lower/upper string parameter.
> QueryParser: time not supported in date ranges
> ----------------------------------------------
>
> Key: LUCENE-79
> URL: https://issues.apache.org/jira/browse/LUCENE-79
> Project: Lucene - Java
> Issue Type: Improvement
> Components: QueryParser
> Affects Versions: CVS Nightly - Specify date in submission
> Environment: Operating System: All
> Platform: PC
> Reporter: Jay Jayaprasad
> Priority: Minor
>
> It would be great if time was supported in date ranges. I believe it is a simple
> change in QueryParser.jj to do this. It should be as simple as changing the
> following line in QueryParser.jj.getRangeQuery():
> DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT);
> TO
> DateFormat df = DateFormat.getDateTimeInstance(DateFormat.SHORT,
> DateFormat.SHORT);
--
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