public String toString(String field) {StringBuilder buffer = new StringBuilder();buffer.append("spanOr([");Iterator<SpanQuery> i = clauses.iterator();while (i.hasNext()) {SpanQuery clause = i.next();buffer.append(clause.toString(field));if (i.hasNext()) {buffer.append(", ");}}buffer.append("])");return buffer.toString();}