results = new SingleTermQuery[numberOfExpandedTerms];
//logger.info("First weight = "+termEntries[0].getWeightExpansion() + " last weight="+termEntries[termEntries.length-1].getWeightExpansion());
for (int i = 0; i < numberOfExpandedTerms; i++)
{
Map.Entry<String,LexiconEntry> lee = lexicon.getLexiconEntry(termEntries[i].getTermID());
results[i] = new SingleTermQuery(lee.getKey());
results[i].setWeight(termEntries[i].getWeightExpansion());
}
} else { //numberOfExpandedTerms=0, Conservative"QE"
results = new SingleTermQuery[originalTermids.size()];
int i=0;
for(int termId : originalTermids.keys())
{
results[i] = new SingleTermQuery(originalTermids.get(termId));
results[i].setWeight(terms.get(termId).getWeightExpansion());
//if (!QEModel.PARAMETER_FREE)
// results[i].setWeight(results[i].getWeight()*QEModel.ROCCHIO_BETA);
}
}