You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (Created) (JIRA)" <ji...@apache.org> on 2012/02/15 16:01:00 UTC
[jira] [Created] (LUCENE-3790) benchmark cannot parse
highlight-vs-vector-highlight.alg, but only on 3.x?!
benchmark cannot parse highlight-vs-vector-highlight.alg, but only on 3.x?!
---------------------------------------------------------------------------
Key: LUCENE-3790
URL: https://issues.apache.org/jira/browse/LUCENE-3790
Project: Lucene - Java
Issue Type: Bug
Components: modules/benchmark
Reporter: Robert Muir
Fix For: 3.6
A new test (TestPerfTasksParse.testParseExamples) was added in LUCENE-3768 that
guarantees all .alg files in the conf/ directory can actually be parsed...
But highlight-vs-vector-highlight.alg cannot be parsed on 3.x (NumberFormatException),
however it works fine on trunk... and the .alg is exactly the same in both cases.
{noformat}
[junit] ------------- Standard Error -----------------
[junit] java.lang.NumberFormatException: For input string: "maxFrags[3.0],fields[body]"
[junit] at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1222)
[junit] at java.lang.Float.parseFloat(Float.java:422)
[junit] at org.apache.lucene.benchmark.byTask.tasks.SearchTravTask.setParams(SearchTravTask.java:76)
[junit] at org.apache.lucene.benchmark.byTask.tasks.SearchTravRetVectorHighlightTask.setParams(SearchTravRetVectorHighlightTask.java:124)
[junit] at org.apache.lucene.benchmark.byTask.utils.Algorithm.<init>(Algorithm.java:112)
[junit] at org.apache.lucene.benchmark.byTask.TestPerfTasksParse.testParseExamples(TestPerfTasksParse.java:132)
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Commented] (LUCENE-3790) benchmark cannot parse
highlight-vs-vector-highlight.alg, but only on 3.x?!
Posted by "Shai Erera (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13208525#comment-13208525 ]
Shai Erera commented on LUCENE-3790:
------------------------------------
This is the reason -- SearchTravRetVectorHighlightTask.setParams's first line:
{code}
// can't call super because super doesn't understand our
// params syntax
{code}
while in 3x it calls super.setParams() first thing ... you know, to be sure :).
> benchmark cannot parse highlight-vs-vector-highlight.alg, but only on 3.x?!
> ---------------------------------------------------------------------------
>
> Key: LUCENE-3790
> URL: https://issues.apache.org/jira/browse/LUCENE-3790
> Project: Lucene - Java
> Issue Type: Bug
> Components: modules/benchmark
> Reporter: Robert Muir
> Fix For: 3.6
>
>
> A new test (TestPerfTasksParse.testParseExamples) was added in LUCENE-3768 that
> guarantees all .alg files in the conf/ directory can actually be parsed...
> But highlight-vs-vector-highlight.alg cannot be parsed on 3.x (NumberFormatException),
> however it works fine on trunk... and the .alg is exactly the same in both cases.
> {noformat}
> [junit] ------------- Standard Error -----------------
> [junit] java.lang.NumberFormatException: For input string: "maxFrags[3.0],fields[body]"
> [junit] at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1222)
> [junit] at java.lang.Float.parseFloat(Float.java:422)
> [junit] at org.apache.lucene.benchmark.byTask.tasks.SearchTravTask.setParams(SearchTravTask.java:76)
> [junit] at org.apache.lucene.benchmark.byTask.tasks.SearchTravRetVectorHighlightTask.setParams(SearchTravRetVectorHighlightTask.java:124)
> [junit] at org.apache.lucene.benchmark.byTask.utils.Algorithm.<init>(Algorithm.java:112)
> [junit] at org.apache.lucene.benchmark.byTask.TestPerfTasksParse.testParseExamples(TestPerfTasksParse.java:132)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Resolved] (LUCENE-3790) benchmark cannot parse
highlight-vs-vector-highlight.alg, but only on 3.x?!
Posted by "Shai Erera (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3790?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shai Erera resolved LUCENE-3790.
--------------------------------
Resolution: Fixed
Assignee: Shai Erera
Committed the fix in rev 1244532.
> benchmark cannot parse highlight-vs-vector-highlight.alg, but only on 3.x?!
> ---------------------------------------------------------------------------
>
> Key: LUCENE-3790
> URL: https://issues.apache.org/jira/browse/LUCENE-3790
> Project: Lucene - Java
> Issue Type: Bug
> Components: modules/benchmark
> Reporter: Robert Muir
> Assignee: Shai Erera
> Fix For: 3.6
>
>
> A new test (TestPerfTasksParse.testParseExamples) was added in LUCENE-3768 that
> guarantees all .alg files in the conf/ directory can actually be parsed...
> But highlight-vs-vector-highlight.alg cannot be parsed on 3.x (NumberFormatException),
> however it works fine on trunk... and the .alg is exactly the same in both cases.
> {noformat}
> [junit] ------------- Standard Error -----------------
> [junit] java.lang.NumberFormatException: For input string: "maxFrags[3.0],fields[body]"
> [junit] at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1222)
> [junit] at java.lang.Float.parseFloat(Float.java:422)
> [junit] at org.apache.lucene.benchmark.byTask.tasks.SearchTravTask.setParams(SearchTravTask.java:76)
> [junit] at org.apache.lucene.benchmark.byTask.tasks.SearchTravRetVectorHighlightTask.setParams(SearchTravRetVectorHighlightTask.java:124)
> [junit] at org.apache.lucene.benchmark.byTask.utils.Algorithm.<init>(Algorithm.java:112)
> [junit] at org.apache.lucene.benchmark.byTask.TestPerfTasksParse.testParseExamples(TestPerfTasksParse.java:132)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Commented] (LUCENE-3790) benchmark cannot parse
highlight-vs-vector-highlight.alg, but only on 3.x?!
Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13208532#comment-13208532 ]
Robert Muir commented on LUCENE-3790:
-------------------------------------
Thanks Shai! I tested this locally and the test then passes...
> benchmark cannot parse highlight-vs-vector-highlight.alg, but only on 3.x?!
> ---------------------------------------------------------------------------
>
> Key: LUCENE-3790
> URL: https://issues.apache.org/jira/browse/LUCENE-3790
> Project: Lucene - Java
> Issue Type: Bug
> Components: modules/benchmark
> Reporter: Robert Muir
> Fix For: 3.6
>
>
> A new test (TestPerfTasksParse.testParseExamples) was added in LUCENE-3768 that
> guarantees all .alg files in the conf/ directory can actually be parsed...
> But highlight-vs-vector-highlight.alg cannot be parsed on 3.x (NumberFormatException),
> however it works fine on trunk... and the .alg is exactly the same in both cases.
> {noformat}
> [junit] ------------- Standard Error -----------------
> [junit] java.lang.NumberFormatException: For input string: "maxFrags[3.0],fields[body]"
> [junit] at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1222)
> [junit] at java.lang.Float.parseFloat(Float.java:422)
> [junit] at org.apache.lucene.benchmark.byTask.tasks.SearchTravTask.setParams(SearchTravTask.java:76)
> [junit] at org.apache.lucene.benchmark.byTask.tasks.SearchTravRetVectorHighlightTask.setParams(SearchTravRetVectorHighlightTask.java:124)
> [junit] at org.apache.lucene.benchmark.byTask.utils.Algorithm.<init>(Algorithm.java:112)
> [junit] at org.apache.lucene.benchmark.byTask.TestPerfTasksParse.testParseExamples(TestPerfTasksParse.java:132)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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