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:55:12 UTC
[jira] [Commented] (LUCENE-4807) toString of TermRangeQuery ends
with "}" instead of "]"
[ https://issues.apache.org/jira/browse/LUCENE-4807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13590117#comment-13590117 ]
Hoss Man commented on LUCENE-4807:
----------------------------------
FWIW...
bq. I came across this when I tried to parse a query based on the toString of a TermRangeQuery.
You can not in general count on the lucene QueryParser to be able to correctly parse back the output of any query's toString() method (see LUCENE-4673) but as of Lucene 4.0, The lucene QueryParser does in fact support parsing mixed inclusion/exclusion boundaries on range queries (see LUCENE-996)
> 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