[
https://issues.apache.org/jira/browse/LUCENE-3338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071615#comment-13071615
]
Uwe Schindler commented on LUCENE-3338:
---------------------------------------
OK, now I understand:
bq. I changed the patch to make the junit fail and you see the problem with [x
TO x} matching nothing.
It seems that somehow the formatting of your original comment in JIRA was
broken, I misunderstood and thought you mean half open ranges like: [x TO *]
behaving different like [x TO *}, which is not the case (i am glad).
This of course returns no results, because the upper bound explicitely excludes
the lower bound, so its in fact a query where upper<lower bound, so returns
nothing, this is not bug or limitation, its in my opinion correct:
assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, false, true, 1);
I would change that line to assert 0 results like in the next test with (true,
false).
> Flexible query parser does not support open ranges and range queries with
> mixed inclusive and exclusive ranges
> --------------------------------------------------------------------------------------------------------------
>
> Key: LUCENE-3338
> URL: https://issues.apache.org/jira/browse/LUCENE-3338
> Project: Lucene - Java
> Issue Type: Bug
> Components: modules/queryparser
> Affects Versions: 3.3
> Reporter: Vinicius Barros
> Assignee: Uwe Schindler
> Fix For: 4.0
>
> Attachments: week9-merged-nosurround.patch,
> week9-merged-nosurround_with_failing_junit.patch, week9-merged.patch,
> week9.patch
>
>
> Flexible query parser does not support open ranges and range queries with
> mixed inclusive and exclusive ranges.
> These two problems were found while developing LUCENE-1768.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]