public void runQueries() throws IOException {
IndexReader reader = DirectoryReader.open(FSDirectory.open(new File(pathToIndex)));
searcher = new IndexSearcher(reader);
if (similarity.equalsIgnoreCase("bm25")) {
Similarity simBM25 = new BM25Similarity();
searcher.setSimilarity(simBM25);
} else if (similarity.equalsIgnoreCase("lm")) {
NamedList<Double> paramNamedList = new NamedList<Double>();
paramNamedList.add("mu", 2500.0);
SolrParams params = SolrParams.toSolrParams(paramNamedList);