[ 
https://issues.apache.org/jira/browse/LUCENE-2541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12889364#action_12889364
 ] 

Yonik Seeley commented on LUCENE-2541:
--------------------------------------

bq. our patch fixes the bug but it breaks NRQ for such bounds. Whenever the 
"+/- diff" operation overflows the long, it stops creating new sub ranges.

Hmmm, I had the same fear earlier, but then I discounted it.
If nextMinBound wraps, isn't it the case that if we did use BigIntegers that 
nextMinBound would be greater than nextMaxBound anyway (and hence the 
"nextMinBound>nextMaxBound" clause would still stop creating subranges)?

> NumericRangeQuery errors with endpoints near long min and max values
> --------------------------------------------------------------------
>
>                 Key: LUCENE-2541
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2541
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.9
>            Reporter: Koji Sekiguchi
>            Assignee: Uwe Schindler
>         Attachments: LUCENE-2541-uwe.patch, LUCENE-2541.patch, 
> LUCENE-2541.patch, TestNumericRangeQuery.java
>
>
> This problem first reported in Solr:
> http://lucene.472066.n3.nabble.com/range-query-on-TrieLongField-strange-result-tt970974.html#a970974

-- 
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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to