You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2013/03/01 01:53:12 UTC
[jira] [Resolved] (LUCENE-4807) toString of TermRangeQuery ends
with "}" instead of "]"
[ https://issues.apache.org/jira/browse/LUCENE-4807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoss Man resolved LUCENE-4807.
------------------------------
Resolution: Not A Problem
TermRangeQuery.toString() uses square brackets to denote inclusive bounds and curly braces to denote exclusive bounds. boundary types can be mixed, so a toString value of "lastmodified:[19700101000000 TO 20130228202438}" is conveying that it is inclusive of 19700101000000 and exclusive of 20130228202438.
> toString of TermRangeQuery ends with "}" instead of "]"
> -------------------------------------------------------
>
> Key: LUCENE-4807
> URL: https://issues.apache.org/jira/browse/LUCENE-4807
> Project: Lucene - Core
> Issue Type: Bug
> Affects Versions: 3.1
> Reporter: YL
>
> Create a TermRangeQuery, then toString it, you'll get something like this:
> +lastmodified:[19700101000000 TO 20130228202438}
> The last character is wrong. I came across this when I tried to parse a query based on the toString of a TermRangeQuery.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org