/** * Prints a user-readable version of this query. * <p> * The term is wrapped in simple quotes, so that any special characters it * may contains are disabled. See ProtectedQueryNode in siren-qparser. */ @Override public String toString(final String field) { final StringBuffer buffer = new StringBuffer(); final CharSequence text = term.text(); if (text.length() != 0) { buffer.append("'").append(text).append("'"); } buffer.append(ToStringUtils.boost(this.getBoost())); return this.wrapToStringWithDatatype(buffer).toString(); }