jsonObj.accumulate("reverse", results.isReverse());
jsonObj.accumulate("start", results.getStart());
jsonObj.accumulate("end", results.getEnd());
jsonObj.accumulate("rows", results.getRows());
jsonObj.accumulate("totalhits", results.getTotalHits());
jsonObj.accumulate("withSummary", results.isWithSummary());
String[] searchFields = results.getFields();
Set<String> fieldSet = new HashSet<String>();
if (searchFields != null && searchFields.length > 0) {
jsonObj.accumulate("fields", StringUtils.join(searchFields, ","));