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();}
public override string ToString(string field){StringBuilder buffer = new StringBuilder();buffer.Append("spanOr([");bool first = true;foreach (SpanQuery clause in clauses){if (!first) buffer.Append(", ");buffer.Append(clause.ToString(field));first = false;}buffer.Append("])");buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();}