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: [email protected]
For additional commands, e-mail: [email protected]