public String toString(String field) {StringBuilder buffer = new StringBuilder();buffer.append("(");for (int i = 0 ; i < disjuncts.length; i++) {Query subquery = disjuncts[i];if (subquery instanceof BooleanQuery) {   buffer.append("(");buffer.append(subquery.toString(field));buffer.append(")");}else buffer.append(subquery.toString(field));if (i != disjuncts.length-1) buffer.append(" | ");}buffer.append(")");if (tieBreakerMultiplier != 0.0f) {buffer.append("~");buffer.append(tieBreakerMultiplier);}return buffer.toString();}
public override string ToString(string field){StringBuilder buffer = new StringBuilder();buffer.Append("(");int numDisjunctions = disjuncts.Count;for (int i = 0; i < numDisjunctions; i++){Query subquery = disjuncts[i];if (subquery is BooleanQuery) {buffer.Append("(");buffer.Append(subquery.ToString(field));buffer.Append(")");}else{buffer.Append(subquery.ToString(field));}if (i != numDisjunctions - 1){buffer.Append(" | ");}}buffer.Append(")");if (tieBreakerMultiplier != 0.0f){buffer.Append("~");buffer.Append(tieBreakerMultiplier);}if (Boost != 1.0){buffer.Append("^");buffer.Append(Boost);}return buffer.ToString();}