lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeroen Vuurens (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-2849) StringIndexOutOfBoundsException on searchtime
Date Thu, 06 Jan 2011 11:54:46 GMT
StringIndexOutOfBoundsException on searchtime
---------------------------------------------

                 Key: LUCENE-2849
                 URL: https://issues.apache.org/jira/browse/LUCENE-2849
             Project: Lucene - Java
          Issue Type: Bug
          Components: contrib/benchmark
    Affects Versions: 3.0.2
         Environment: Windows XP
            Reporter: Jeroen Vuurens
            Priority: Minor


I've been trying to run the example PrecisionRecall.java code from Lucene in Action II (downloaded
the code, so its just as in the book). It gives a StringIndexOutOfBoundsException on my machine.


>From what i can tell it uses a searchtime in milliseconds / 1000, and QualityStats.fracFormat()
uses k = frac.indexOf('.') that returns -1 (maybe time = 0 milliseconds?) and returns the
exception when performing frac.substring(0,k). Any tips on how to overcome this? 


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


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


Mime
View raw message