text: public final String toString() {StringBuilder buffer = new StringBuilder();buffer.append("Document<");for (int i = 0; i < fields.size(); i++) {IndexableField field = fields.get(i);buffer.append(field.toString());if (i != fields.size()-1) {buffer.append(" ");}}buffer.append(">");return buffer.toString();}