NightOwl888 commented on code in PR #837:
URL: https://github.com/apache/lucenenet/pull/837#discussion_r1167142958


##########
src/Lucene.Net/Search/IndexSearcher.cs:
##########
@@ -135,13 +134,44 @@ public IndexSearcher(IndexReader r, TaskScheduler 
executor)
         /// <seealso cref="IndexReaderContext"/>
         /// <seealso cref="IndexReader.Context"/>
         public IndexSearcher(IndexReaderContext context, TaskScheduler 
executor)
+            : this(context, executor, allocateLeafSlices: executor is not null)
         {
-            if (Debugging.AssertsEnabled) 
Debugging.Assert(context.IsTopLevel,"IndexSearcher's ReaderContext must be 
topLevel for reader {0}", context.Reader);
+        }
+
+        /// <summary>
+        /// LUCENENET specific constructor that can be used by the subclasses 
to
+        /// control whether the leaf slices are allocated in the base class or 
subclass.
+        /// </summary>
+        /// <remarks>
+        /// If executor is non-<c>null</c> and you choose to skip allocating 
the leaf slices

Review Comment:
   Oops. I missed that the second word here should be `<paramref 
name="executor"/>`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to