msokolov commented on issue #15005:
URL: https://github.com/apache/lucene/issues/15005#issuecomment-3140391399

   I tried a test like this but it does not repro any problem:
   
   ```
     public void testTwoSegments() throws IOException {
       // see https://github.com/apache/lucene/issues/15005
       int dim = random().nextInt(1, 10);
       try (Directory d = newDirectory()) {
         RandomIndexWriter writer = new RandomIndexWriter(random(), d, 
newIndexWriterConfig());
         writer.addDocuments(createFamily(2, dim));
         writer.addDocuments(createFamily(3, dim));
         writer.commit();
         writer.addDocuments(createFamily(1, dim));
         writer.close();
         try (IndexReader reader = DirectoryReader.open(d)) {
           BitSetProducer parentFilter =
                   new QueryBitSetProducer(new TermQuery(new Term("docType", 
"_parent")));
           IndexSearcher searcher = newSearcher(reader);
           Query query =
                   getParentJoinKnnQuery("field", randomVector(dim), null, 3, 
parentFilter);
           TopDocs results = searcher.search(query, 3);
           assertEquals(3, results.scoreDocs.length);
           assertTrue(results.totalHits.value() >= results.scoreDocs.length);
         }
       }
     }
   ```
   


-- 
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-unsubscr...@lucene.apache.org

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


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

Reply via email to