ert.setXQuery(toOperandType(root));
}
catch (CQLParseException e) {
log.error("parse problem: \""+query+"\"",e);
RelationType rt=new RelationType("", null);
SearchClauseType sct=new SearchClauseType("", rt, "");
OperandType ot=new OperandType();
ot.setSearchClause(sct);
ert.setXQuery(ot);
}
catch (IOException e) {
log.error(e,e);
RelationType rt=new RelationType("", null);
SearchClauseType sct=new SearchClauseType("", rt, "");
OperandType ot=new OperandType();
ot.setSearchClause(sct);
ert.setXQuery(ot);
}
}
else { // sadly, just because the request didn't include it doesn't mean
// that the response gets to omit it. So, provide an empty query
ert.setQuery("");
RelationType rt=new RelationType("", null);
SearchClauseType sct=new SearchClauseType("", rt, "");
OperandType ot=new OperandType();
ot.setSearchClause(sct);
ert.setXQuery(ot);
}
ert.setResultSetTTL( request.getResultSetTTL());