lucene-lucene-net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENENET-95) Nunite test for Search.TestDisjunctionMaxQuery.TestBooleanOptionalWithTiebreaker
Date Tue, 11 Sep 2007 18:16:32 GMT

    [ https://issues.apache.org/jira/browse/LUCENENET-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526546
] 

Digy commented on LUCENENET-95:
-------------------------------

Hi Jeff and George
        public void Test2()
        {
            /*1*/
            float f1 = (float)Math.Sqrt(2);
            float f2 = (float)Math.Sqrt(0.5);
            float f = f1 * f2;
            Console.WriteLine(f.ToString());

             /*2*/
            double d1 = (double)Math.Sqrt(2);
            double d2 = (double)Math.Sqrt(0.5);
            double d = d1 * d2;
            Console.WriteLine(d.ToString());
        }

my output:
       0,9999999
       1

If you have the output "1"  for both cases then it must be a problem specific for my configuration(AMD?,
XPHome?,locale?),
but at least this issue can be closed.

DIGY




> Nunite test for Search.TestDisjunctionMaxQuery.TestBooleanOptionalWithTiebreaker
> --------------------------------------------------------------------------------
>
>                 Key: LUCENENET-95
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-95
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Digy
>            Priority: Trivial
>         Attachments: TryThis.patch
>
>
> Changing the line in TestDisjunctionMaxQuery.cs
> from
>    public const float SCORE_COMP_THRESH = 0.0000f;
> to
>    public const float SCORE_COMP_THRESH = 0.00001f;
> solves the problem but i am not sure if an exact match is needed or not.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message