예제 #1
0
 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());
 }
예제 #2
0
파일: TermSpans.cs 프로젝트: vernon016/mono
 public override System.String ToString()
 {
     return("spans(" + term.ToString() + ")@" + (doc == -1?"START":((doc == System.Int32.MaxValue)?"END":doc + "-" + position)));
 }