[
https://issues.apache.org/jira/browse/LUCENE-4800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13587487#comment-13587487
]
Markus Jelsma commented on LUCENE-4800:
---------------------------------------
I'll look into it. I assume NaN would also be a problem for other numeric
DocValues?
> FloatDocValues does not return true for 0 >< 1 values
> -----------------------------------------------------
>
> Key: LUCENE-4800
> URL: https://issues.apache.org/jira/browse/LUCENE-4800
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/search
> Affects Versions: 5.0
> Environment: 5.0-SNAPSHOT 1427825:1444730M - markus - 2013-02-11
> 11:39:54
> Reporter: Markus Jelsma
> Fix For: 5.0
>
> Attachments: LUCENE-4800-trunk.patch
>
>
> The following function query should always yield 1 if the document's field
> matchers the query:
> {code}if(query({!lucene df=FIELD v=$q},0),1,0){code}
> This is, however, not true if due to low IDF the score end up below 1 but,
> obviously, above 0. The if() statement does not recognize a number between
> zero and one as positive and therefore TRUE.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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]