public SpanFirstQueryDescriptor <T> MatchTerm(string field, string value, double?Boost = null) { var span = new SpanQueryDescriptor <T>(); span.SpanTerm(field, value, Boost); this._SpanQueryDescriptor = span; return(this); }
public SpanFirstQueryDescriptor <T> MatchTerm(Expression <Func <T, object> > fieldDescriptor , string value , double?Boost = null) { var span = new SpanQueryDescriptor <T>(true); span = span.SpanTerm(fieldDescriptor, value, Boost); this._SpanQueryDescriptor = span; return(this); }