}
if (file.isDirectory()) {
stream = new JsonStatusCorpusReader(file);
} else {
stream = new JsonStatusBlockReader(file);
}
Analyzer analyzer = ANALYZER;
Similarity similarity = new ConstantNormSimilarity();
IndexWriterConfig config = new IndexWriterConfig(Version.LUCENE_31, analyzer);