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

Andrey Kudryavtsev commented on SOLR-12352:
-------------------------------------------

Casting to double is a "better" approach (i.e. it will give correct answers in 
more cases) but in general [it is still broken|http://example.com] : 

{code} 
    long version1 = 1600463487761383425L;
    long version2 = 1600463487761383424L;
    System.out.println((double)version1 == (double) version2); //true
{code}

Probably there should be more complex logic here 

> Solr mod function query does not yield correct results
> ------------------------------------------------------
>
>                 Key: SOLR-12352
>                 URL: https://issues.apache.org/jira/browse/SOLR-12352
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 7.3
>            Reporter: gnandre
>            Priority: Minor
>
> It seems mod operation in function query is not working correctly for large 
> numbers.
> {noformat}
> "_version_": 1600463487761383425,
> "ms(NOW)": 1526324140364,
> "mod(_version_,ms(NOW))": 1280437520000
> {noformat}
>  
> However, mod(1600463487761383425,1526324140364) is 1204927482853.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to