public FunctionScoreFunction <T> Linear(Expression <Func <T, object> > objectPath, Action <FunctionScoreDecayFieldDescriptor> descriptorBuilder) { var fn = new LinearFunction <T>(objectPath, descriptorBuilder); this._Functions.Add(fn); return(fn); }
public FunctionScoreFunction <T> Linear(string field, Action <FunctionScoreDecayFieldDescriptor> descriptorBuilder) { var fn = new LinearFunction <T>(field, descriptorBuilder); this._Functions.Add(fn); return(fn); }