lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Jelsma (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENE-4800) FloatDocValues does not return true for 0 >< 1 values
Date Tue, 26 Feb 2013 10:28:12 GMT
Markus Jelsma created LUCENE-4800:
-------------------------------------

             Summary: 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


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


Mime
View raw message