[ 
https://issues.apache.org/jira/browse/LUCENE-4950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13639098#comment-13639098
 ] 

Robert Muir commented on LUCENE-4950:
-------------------------------------

How about this:
{noformat}
Index: 
lucene/test-framework/src/java/org/apache/lucene/search/AssertingScorer.java
===================================================================
--- 
lucene/test-framework/src/java/org/apache/lucene/search/AssertingScorer.java    
    (revision 1470976)
+++ 
lucene/test-framework/src/java/org/apache/lucene/search/AssertingScorer.java    
    (working copy)
@@ -87,10 +87,10 @@
     this.in = in;
     this.topScorer = topScorer;
     this.inOrder = inOrder;
-    this.docsEnumIn = new AssertingAtomicReader.AssertingDocsEnum(in, 
topScorer == TopScorer.NO);
     this.canCallNextDoc = topScorer != TopScorer.YES // not a top scorer
       || !SCORE_COLLECTOR_RANGE.isOverriddenAsOf(in.getClass()) // the default 
impl relies upon nextDoc()
       || !SCORE_COLLECTOR.isOverriddenAsOf(in.getClass()); // the default impl 
relies upon nextDoc()
+    this.docsEnumIn = new AssertingAtomicReader.AssertingDocsEnum(in, 
canCallNextDoc);
   }
 
{noformat}
                
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to