public override System.String ToString(System.String field) { System.Text.StringBuilder buffer = new System.Text.StringBuilder(); if (term.Field().Equals(field)) { buffer.Append(term.Text()); } else { buffer.Append(term.ToString()); } buffer.Append(ToStringUtils.Boost(GetBoost())); return(buffer.ToString()); }
public override System.String ToString() { return("spans(" + term.ToString() + ")@" + (doc == -1?"START":((doc == System.Int32.MaxValue)?"END":doc + "-" + position))); }