[jira] [Updated] (LUCENE-4950) AssertingIndexSearcher isn't wrapping the Collector to AssertingCollector

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (LUCENE-4950) AssertingIndexSearcher isn't wrapping the Collector to AssertingCollector

Sebastian Nagel (Jira)

     [ https://issues.apache.org/jira/browse/LUCENE-4950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless updated LUCENE-4950:
---------------------------------------

    Attachment: LUCENE-4950.patch

Current patch ... but some tests still failing, e.g. this fun one:

{noformat}
[junit4:junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestNumericRangeQuery32 -Dtests.method=testOneMatchQuery -Dtests.seed=CFA55692AE54C388 -Dtests.slow=true -Dtests.locale=sr_BA_#Latn -Dtests.timezone=US/Alaska -Dtests.file.encoding=ISO-8859-1
[junit4:junit4] FAILURE 0.08s | TestNumericRangeQuery32.testOneMatchQuery <<<
[junit4:junit4]    > Throwable #1: java.lang.AssertionError: class org.apache.lucene.search.ConstantScoreQuery$ConstantScorer: invalid initial doc id: 5
[junit4:junit4]    > at __randomizedtesting.SeedInfo.seed([CFA55692AE54C388:C04896C672DCE5CB]:0)
[junit4:junit4]    > at org.apache.lucene.index.AssertingAtomicReader$AssertingDocsEnum.<init>(AssertingAtomicReader.java:240)
[junit4:junit4]    > at org.apache.lucene.search.AssertingScorer.<init>(AssertingScorer.java:90)
[junit4:junit4]    > at org.apache.lucene.search.AssertingScorer.getAssertingScorer(AssertingScorer.java:71)
[junit4:junit4]    > at org.apache.lucene.search.AssertingCollector.setScorer(AssertingCollector.java:48)
[junit4:junit4]    > at org.apache.lucene.search.ConstantScoreQuery$ConstantScorer$1.setScorer(ConstantScoreQuery.java:220)
[junit4:junit4]    > at org.apache.lucene.search.Scorer.score(Scorer.java:85)
[junit4:junit4]    > at org.apache.lucene.search.ConstantScoreQuery$ConstantScorer.score(ConstantScoreQuery.java:254)
[junit4:junit4]    > at org.apache.lucene.search.AssertingScorer.score(AssertingScorer.java:125)
[junit4:junit4]    > at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:616)
[junit4:junit4]    > at org.apache.lucene.search.AssertingIndexSearcher.search(AssertingIndexSearcher.java:93)
[junit4:junit4]    > at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:480)
[junit4:junit4]    > at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:436)
[junit4:junit4]    > at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:273)
[junit4:junit4]    > at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:261)
[junit4:junit4]    > at org.apache.lucene.search.TestNumericRangeQuery32.testOneMatchQuery(TestNumericRangeQuery32.java:215)
[junit4:junit4]    > at java.lang.Thread.run(Thread.java:722)
[junit4:junit4]   2> NOTE: test params are: codec=Lucene42: {field4=PostingsFormat(name=TestBloomFilteredLucene41Postings), field2147483647=PostingsFormat(name=TestBloomFilteredLucene41Postings), field2=PostingsFormat(name=SimpleText), ascfield8=MockVariableIntBlock(baseBlockSize=109), field8=PostingsFormat(name=TestBloomFilteredLucene41Postings), ascfield2=PostingsFormat(name=Memory doPackFST= false), ascfield4=MockVariableIntBlock(baseBlockSize=109)}, docValues:{}, sim=DefaultSimilarity, locale=sr_BA_#Latn, timezone=US/Alaska
[junit4:junit4]   2> NOTE: Linux 3.5.0-23-generic amd64/Oracle Corporation 1.7.0_06 (64-bit)/cpus=8,threads=1,free=210356704,total=247463936
[junit4:junit4]   2> NOTE: All tests run in this JVM: [TestNumericRangeQuery32]
{noformat}

I think it's because of the sneakiness that ConstantScoreQuery does to enable out-of-order scoring ...
               

> AssertingIndexSearcher isn't wrapping the Collector to AssertingCollector
> -------------------------------------------------------------------------
>
>                 Key: LUCENE-4950
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4950
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Michael McCandless
>             Fix For: 5.0, 4.4
>
>         Attachments: LUCENE-4950.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]