LOG.info("Using default FSDirectory");
dir = FSDirectory.open(Paths.get(searchArgs.index));
}</BUG>
Similarity similarity = null;
if (searchArgs.ql) {
<BUG>LOG.info("Using QL scoring model");
similarity = new LMDirichletSimilarity(searchArgs.mu);</BUG>
} else if (searchArgs.bm25) {
<BUG>LOG.info("Using BM25 scoring model");
similarity = new BM25Similarity(searchArgs.k1, searchArgs.b);</BUG>
} else {

System.err.println(e.getMessage());
parser.printUsage(System.err);
System.err.println("Example: SearchWebCollection" + parser.printExample(OptionHandlerFilter.REQUIRED));
return;
}
Similarity similarity = null;
if (searchArgs.ql) {
LOG.info("Using QL scoring model with mu=" + searchArgs.mu);
similarity = new LMDirichletSimilarity(searchArgs.mu);
} else if (searchArgs.bm25) {
LOG.info("Using BM25 scoring model with k1=" + searchArgs.k1 + " and b=" + searchArgs.b);
similarity = new BM25Similarity(searchArgs.k1, searchArgs.b);
} else {
