You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2021/09/23 14:00:05 UTC

[GitHub] [lucene] mayya-sharipova commented on a change in pull request #317: LUCENE-10119: Do not set singleSort with search after

mayya-sharipova commented on a change in pull request #317:
URL: https://github.com/apache/lucene/pull/317#discussion_r714782981



##########
File path: lucene/core/src/test/org/apache/lucene/search/TestSortOptimization.java
##########
@@ -675,7 +674,23 @@ public void testMaxDocVisited() throws IOException {
   public void testRandomLong() throws IOException {
     Directory dir = newDirectory();
     IndexWriter writer = new IndexWriter(dir, new IndexWriterConfig());
-    List<Long> seqNos = LongStream.range(0, atLeast(10_000)).boxed().collect(Collectors.toList());
+    int numDocs = 10000 + random().nextInt(10000);

Review comment:
       may be instead of `numDocs` call this something else, because `numDocs` will be actually `seqNos.size()`.




-- 
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: issues-unsubscribe@lucene.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org