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 (JIRA)" <ji...@apache.org> on 2017/11/01 02:01:09 UTC
[jira] [Commented] (LUCENE-8030) TestCorePlusExtensionsParser
failure: AssertingSimilarity.simScorer()'s SimScorer.computePayloadFactor()
is angry
[ https://issues.apache.org/jira/browse/LUCENE-8030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16233570#comment-16233570 ]
Robert Muir commented on LUCENE-8030:
-------------------------------------
Looks like a bug in AssertingSimilarity? start and end aren't offsets but the positions of the matching span, so we should sanity check those differently.
i will fix, thanks.
> TestCorePlusExtensionsParser failure: AssertingSimilarity.simScorer()'s SimScorer.computePayloadFactor() is angry
> -----------------------------------------------------------------------------------------------------------------
>
> Key: LUCENE-8030
> URL: https://issues.apache.org/jira/browse/LUCENE-8030
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/queryparser
> Reporter: Steve Rowe
>
> From [https://jenkins.thetaphi.de/job/Lucene-Solr-master-Linux/20789/] - reproduces for me, but only if I first remove {{-Dtests.method=testBoostingTermQueryXML}} from the cmdline:
> {noformat}
> Checking out Revision 39376cd8b5ef03b3338c2e8fa31dce732749bcd7 (refs/remotes/origin/master)
> [...]
> [junit4] Suite: org.apache.lucene.queryparser.xml.TestCorePlusExtensionsParser
> [junit4] 2> NOTE: reproduce with: ant test -Dtestcase=TestCorePlusExtensionsParser -Dtests.method=testBoostingTermQueryXML -Dtests.seed=DA0883869B26E8D9 -Dtests.multiplier=3 -Dtests.slow=true -Dtests.locale=th-TH -Dtests.timezone=America/Indiana/Indianapolis -Dtests.asserts=true -Dtests.file.encoding=ISO-8859-1
> [junit4] FAILURE 0.01s J0 | TestCorePlusExtensionsParser.testBoostingTermQueryXML <<<
> [junit4] > Throwable #1: java.lang.AssertionError
> [junit4] > at __randomizedtesting.SeedInfo.seed([DA0883869B26E8D9:F58B709A872CAF14]:0)
> [junit4] > at org.apache.lucene.search.similarities.AssertingSimilarity$1.computePayloadFactor(AssertingSimilarity.java:120)
> [junit4] > at org.apache.lucene.queries.payloads.PayloadScoreQuery$PayloadSpans.collectLeaf(PayloadScoreQuery.java:215)
> [junit4] > at org.apache.lucene.search.spans.TermSpans.collect(TermSpans.java:121)
> [junit4] > at org.apache.lucene.queries.payloads.PayloadScoreQuery$PayloadSpans.doCurrentSpans(PayloadScoreQuery.java:226)
> [junit4] > at org.apache.lucene.search.spans.SpanScorer.setFreqCurrentDoc(SpanScorer.java:110)
> [junit4] > at org.apache.lucene.search.spans.SpanScorer.ensureFreq(SpanScorer.java:126)
> [junit4] > at org.apache.lucene.search.spans.SpanScorer.score(SpanScorer.java:133)
> [junit4] > at org.apache.lucene.search.AssertingScorer.score(AssertingScorer.java:70)
> [junit4] > at org.apache.lucene.search.AssertingScorer.score(AssertingScorer.java:70)
> [junit4] > at org.apache.lucene.search.TopScoreDocCollector$SimpleTopScoreDocCollector$1.collect(TopScoreDocCollector.java:64)
> [junit4] > at org.apache.lucene.search.AssertingLeafCollector.collect(AssertingLeafCollector.java:52)
> [junit4] > at org.apache.lucene.search.AssertingCollector$1.collect(AssertingCollector.java:56)
> [junit4] > at org.apache.lucene.search.AssertingLeafCollector.collect(AssertingLeafCollector.java:52)
> [junit4] > at org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:241)
> [junit4] > at org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:184)
> [junit4] > at org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
> [junit4] > at org.apache.lucene.search.AssertingBulkScorer.score(AssertingBulkScorer.java:69)
> [junit4] > at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:658)
> [junit4] > at org.apache.lucene.search.AssertingIndexSearcher.search(AssertingIndexSearcher.java:72)
> [junit4] > at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:462)
> [junit4] > at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:581)
> [junit4] > at org.apache.lucene.search.IndexSearcher.searchAfter(IndexSearcher.java:439)
> [junit4] > at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:450)
> [junit4] > at org.apache.lucene.queryparser.xml.TestCoreParser.dumpResults(TestCoreParser.java:254)
> [junit4] > at org.apache.lucene.queryparser.xml.TestCoreParser.testBoostingTermQueryXML(TestCoreParser.java:127)
> [junit4] > at java.lang.Thread.run(Thread.java:748)
> [junit4] 2> NOTE: test params are: codec=CheapBastard, sim=Asserting(org.apache.lucene.search.similarities.AssertingSimilarity@fcaf28), locale=th-TH, timezone=America/Indiana/Indianapolis
> [junit4] 2> NOTE: Linux 4.10.0-37-generic i386/Oracle Corporation 1.8.0_144 (32-bit)/cpus=8,threads=1,free=47589984,total=67108864
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org