mocobeta commented on code in PR #833: URL: https://github.com/apache/lucene/pull/833#discussion_r863855038
########## lucene/core/src/test/org/apache/lucene/index/TestExitableDirectoryReader.java: ########## @@ -428,6 +430,107 @@ public void testDocValues() throws IOException { directory.close(); } + public void testVectorValues() throws IOException { + Directory directory = newDirectory(); + IndexWriter writer = + new IndexWriter(directory, newIndexWriterConfig(new MockAnalyzer(random()))); + + int numDoc = atLeast(20); + int deletedDoc = atMost(5); + int dimension = atLeast(3); + boolean vectorIndexed = false; + + for (int i = 0; i < numDoc; i++) { + Document doc = new Document(); + + if (random().nextBoolean()) { Review Comment: I'm just curious - what's the point of this randomness? Wouldn't it be okay in adding the vector values for all test docs? -- 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