private void query(BooleanQuery query, BooleanQueryResultWriter writer) throws QueryEvaluationException {
try {
writer.write(query.evaluate());
} catch (IOException e) {
throw new QueryEvaluationException("error while writing query boolean result: ",e);
}
}