String[] terms = new String[termNodes.size()];
for (int i = 0; i < termNodes.size(); i++) {
terms[i] = termNodes.get(i).getTerm();
}
Expression expression = expressionGenerator.getExpression(terms);
// Get inverted list for this expression.
postingsReader = env.getPostingsReader(expression);
// Get collection statistics for the expression.