lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4807) toString of TermRangeQuery ends with "}" instead of "]"
Date Fri, 01 Mar 2013 00:55:12 GMT

    [ 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


Mime
View raw message