janhoy commented on a change in pull request #355: URL: https://github.com/apache/lucene/pull/355#discussion_r727854794
########## File path: lucene/demo/src/java/org/apache/lucene/demo/IndexFiles.java ########## @@ -175,7 +175,7 @@ public static void main(String[] args) throws Exception { + " documents in " + (end.getTime() - start.getTime()) + " milliseconds"); - if (reader.numDocs() > 100 && vectorDictSize < 1_000_000) { + if (reader.numDocs() > 100 && vectorDictSize < 1_000_000 && System.getProperty("smoketester") == null) { throw new RuntimeException( "Are you (ab)using the toy vector dictionary? See the package javadocs to understand why you got this exception."); } Review comment: The demo indexer failed due to this exception, so I add a 'smoketester' mode to it that will allow "abuse". -- 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