To create custom search corpus
ExecutorService executor = ... ; Corpus> corpus = Configurations.builder() .srcDir(Paths.get(...)) .indexDir(Paths.get(...)) .granularity(Granularity.FILE) .recentness(Recentness.RECENT) .filtered() .source(Source.VCS) .build(); Future
> future = executor.submit(corpus.create());