lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-2541) range query Long.MAX_VALUE to Long.MAX_VALUE on trie long field returns all docs in index
Date Fri, 16 Jul 2010 18:23:51 GMT

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

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

It's difficult to nail down exactly when things fail (in order to describe it in CHANGES.txt)
since overflow can occur on the last shift, but the code stops on the last shift regardless
(the "shift+precisionStep>=valSize" test). So a lower bound of 1 with an upper bound of
MAX_VALUE will overflow but still work, but a lower bound greater than MAX_VALUE-(1L<<60)+2
will fail for example.


> range query Long.MAX_VALUE to Long.MAX_VALUE on trie long field returns all docs in index
> -----------------------------------------------------------------------------------------
>
>                 Key: LUCENE-2541
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2541
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>            Reporter: Koji Sekiguchi
>         Attachments: 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message