if (!paramFile.exists()) {
System.err.println("QueryEnvironment: pathToRunParamFile does not exist!");
throw new IOException();
}
IndriRunParams runParams = new IndriRunParams();
runParams.ParseXMLQueryFile(pathToRunParamFile);
similarity = runParams.getSimilarity();
if (similarity == null) {
similarity = "lm";
}
pathToIndex = runParams.getIndexName();
if (pathToIndex == null) {
System.err.println("IndexEnvironment: null value for index name!");
throw new IllegalArgumentException();
}
count = runParams.getCount();
if (count < 1) {
System.err.println("cannot retrieve " + count + " docs!");
System.exit(-1);
}
fbDocs = runParams.getFBDocs();
fbTerms = runParams.getFBTerms();
System.err.println("index: " + pathToIndex);
// now the queries
if (pathToQueryFile == null) {