Пример #1
0
 public override System.String ToString(System.String field)
 {
     System.Text.StringBuilder buffer = new System.Text.StringBuilder();
     buffer.Append("payloadNear([");
     System.Collections.IEnumerator i = clauses.GetEnumerator();
     while (i.MoveNext())
     {
         SpanQuery clause = (SpanQuery)i.Current;
         buffer.Append(clause.ToString(field));
         if (i.MoveNext())
         {
             buffer.Append(", ");
         }
     }
     buffer.Append("], ");
     buffer.Append(slop);
     buffer.Append(", ");
     buffer.Append(inOrder);
     buffer.Append(")");
     buffer.Append(ToStringUtils.Boost(GetBoost()));
     return(buffer.ToString());
 }
Пример #2
0
        public override string ToString(string field)
        {
            System.Text.StringBuilder buffer = new System.Text.StringBuilder();
            buffer.Append("payloadNear([");
            var i = clauses.GetEnumerator();

            while (i.MoveNext())
            {
                SpanQuery clause = i.Current;
                buffer.Append(clause.ToString(field));
                if (i.MoveNext())
                {
                    buffer.Append(", ");
                }
            }
            buffer.Append("], ");
            buffer.Append(internalSlop);
            buffer.Append(", ");
            buffer.Append(inOrder);
            buffer.Append(")");
            buffer.Append(ToStringUtils.Boost(Boost));
            return(buffer.ToString());
        }