lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-7111) DocValuesRangeQuery.newLongRange behaves incorrectly for Long.MAX_VALUE and Long.MIN_VALUE
Date Mon, 21 Mar 2016 13:01:25 GMT

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

ASF subversion and git services commented on LUCENE-7111:
---------------------------------------------------------

Commit 4148cdf7446dca03e59cd5662f49b8286b3ba856 in lucene-solr's branch refs/heads/branch_6x
from [~steve_rowe]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=4148cdf ]

LUCENE-7111: DocValuesRangeQuery.newLongRange behaves incorrectly for Long.MAX_VALUE and Long.MIN_VALUE


> DocValuesRangeQuery.newLongRange behaves incorrectly for Long.MAX_VALUE and Long.MIN_VALUE
> ------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-7111
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7111
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/search
>            Reporter: Ishan Chattopadhyaya
>            Assignee: Steve Rowe
>             Fix For: 6.0
>
>         Attachments: LUCENE-7111.patch, LUCENE-7111.patch, LUCENE-7111.patch
>
>
> It seems that the following queries return all documents, which is unexpected:
> {code}
> DocValuesRangeQuery.newLongRange("dv", Long.MAX_VALUE, Long.MAX_VALUE, false, true);
> DocValuesRangeQuery.newLongRange("dv", Long.MIN_VALUE, Long.MIN_VALUE, true, false);
> {code}
> In Solr, floats and doubles are converted to longs and -0d gets converted to Long.MIN_VALUE,
and queries like {-0d TO 0d] could fail due to this, returning all documents in the index.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message