Github user synhershko commented on a diff in the pull request:

    https://github.com/apache/lucenenet/pull/172#discussion_r71071991
  
    --- Diff: src/Lucene.Net.TestFramework/Search/QueryUtils.cs ---
    @@ -442,15 +445,17 @@ private class CollectorAnonymousInnerClassHelper2 : 
Collector
                 private int[] LastDoc;
                 private AtomicReader[] LastReader;
                 private IList<AtomicReaderContext> Context;
    +            private readonly Func<IndexReader, bool, IndexSearcher> 
NewSearcher;
     
    -            public CollectorAnonymousInnerClassHelper2(Query q, 
IndexSearcher s, float maxDiff, int[] lastDoc, AtomicReader[] lastReader, 
IList<AtomicReaderContext> context)
    +            public CollectorAnonymousInnerClassHelper2(Query q, 
IndexSearcher s, float maxDiff, int[] lastDoc, AtomicReader[] lastReader, 
IList<AtomicReaderContext> context, Func<IndexReader, bool, IndexSearcher> 
newSearcher)
                 {
                     this.q = q;
                     this.s = s;
                     this.MaxDiff = maxDiff;
                     this.LastDoc = lastDoc;
                     this.LastReader = lastReader;
                     this.Context = context;
    +                NewSearcher = newSearcher;
    --- End diff --
    
    NewSearcherFunc would be a more appropriate name I think?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to