return formatErrorMsg("nothing found", OK);
return "nothing found";
	protected String printSummary(NodeList resultSet, long queryTime) {		if (resultSet.getLength() == 0)			return formatErrorMsg("nothing found", OK);		HashMap map = new HashMap();		HashMap doctypes = new HashMap();		NodeProxy p;		String docName;		DocumentType doctype;		NodeCount counter;		DoctypeCount doctypeCounter;		for (Iterator i = ((NodeSet) resultSet).iterator(); i.hasNext(); ) {			p = (NodeProxy) i.next();			docName = p.doc.getFileName();			doctype = p.doc.getDoctype();			if (map.containsKey(docName)) {				counter = (NodeCount) map.get(docName);				counter.inc();			} else {				counter = new NodeCount(p.doc);				map.put(docName, counter);			}			if (doctype == null)				continue;			if (doctypes.containsKey(doctype.getName())) {				doctypeCounter = (DoctypeCount) doctypes.get(doctype.getName());				doctypeCounter.inc();			} else {				doctypeCounter = new DoctypeCount(doctype);				doctypes.put(doctype.getName(), doctypeCounter);			}		}		NodeSet temp;		StringBuffer buf = new StringBuffer();		buf.append("<exist:result xmlns:exist=\"" + NS + "\" ");		buf.append("hitCount=\"");		buf.append(resultSet.getLength());		buf.append("\" queryTime=\"");		buf.append(queryTime);		buf.append("\">");		for (Iterator i = map.values().iterator(); i.hasNext(); ) {			counter = (NodeCount) i.next();			buf.append("<exist:document name=\"");			buf.append(counter.doc.getFileName());			buf.append("\" id=\"");			buf.append(counter.doc.getDocId());			buf.append("\" hitCount=\"");			buf.append(counter.count);			buf.append("\"/>");		}		DoctypeCount docTemp;		for (Iterator i = doctypes.values().iterator(); i.hasNext(); ) {			docTemp = (DoctypeCount) i.next();			buf.append("<exist:doctype name=\"");			buf.append(docTemp.doctype.getName());			buf.append("\" hitCount=\"");			buf.append(docTemp.count);			buf.append("\"/>");		}		buf.append("</exist:result>");		return buf.toString();	}