Skip to content

Commit 3c43967

Browse files
committed
Rename db param to descriptorBuilder
1 parent da0b4f8 commit 3c43967

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/Nest/DSL/Query/Functions/FunctionScoreFunctionsDescriptor.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,44 +16,44 @@ public FunctionScoreFunctionsDescriptor()
1616
this._Functions = new List<FunctionScoreFunction<T>>();
1717
}
1818

19-
public FunctionScoreFunction<T> Gauss(string field, Action<FunctionScoreDecayFieldDescriptor> db)
19+
public FunctionScoreFunction<T> Gauss(string field, Action<FunctionScoreDecayFieldDescriptor> descriptorBuilder)
2020
{
21-
var fn = new GaussFunction<T>(field, db);
21+
var fn = new GaussFunction<T>(field, descriptorBuilder);
2222
this._Functions.Add(fn);
2323
return fn;
2424
}
2525

26-
public FunctionScoreFunction<T> Gauss(Expression<Func<T, object>> objectPath, Action<FunctionScoreDecayFieldDescriptor> db)
26+
public FunctionScoreFunction<T> Gauss(Expression<Func<T, object>> objectPath, Action<FunctionScoreDecayFieldDescriptor> descriptorBuilder)
2727
{
28-
var fn = new GaussFunction<T>(objectPath, db);
28+
var fn = new GaussFunction<T>(objectPath, descriptorBuilder);
2929
this._Functions.Add(fn);
3030
return fn;
3131
}
3232

33-
public FunctionScoreFunction<T> Linear(string field, Action<FunctionScoreDecayFieldDescriptor> db)
33+
public FunctionScoreFunction<T> Linear(string field, Action<FunctionScoreDecayFieldDescriptor> descriptorBuilder)
3434
{
35-
var fn = new LinearFunction<T>(field, db);
35+
var fn = new LinearFunction<T>(field, descriptorBuilder);
3636
this._Functions.Add(fn);
3737
return fn;
3838
}
3939

40-
public FunctionScoreFunction<T> Linear(Expression<Func<T, object>> objectPath, Action<FunctionScoreDecayFieldDescriptor> db)
40+
public FunctionScoreFunction<T> Linear(Expression<Func<T, object>> objectPath, Action<FunctionScoreDecayFieldDescriptor> descriptorBuilder)
4141
{
42-
var fn = new LinearFunction<T>(objectPath, db);
42+
var fn = new LinearFunction<T>(objectPath, descriptorBuilder);
4343
this._Functions.Add(fn);
4444
return fn;
4545
}
4646

47-
public FunctionScoreFunction<T> Exp(string field, Action<FunctionScoreDecayFieldDescriptor> db)
47+
public FunctionScoreFunction<T> Exp(string field, Action<FunctionScoreDecayFieldDescriptor> descriptorBuilder)
4848
{
49-
var fn = new ExpFunction<T>(field, db);
49+
var fn = new ExpFunction<T>(field, descriptorBuilder);
5050
this._Functions.Add(fn);
5151
return fn;
5252
}
5353

54-
public FunctionScoreFunction<T> Exp(Expression<Func<T, object>> objectPath, Action<FunctionScoreDecayFieldDescriptor> db)
54+
public FunctionScoreFunction<T> Exp(Expression<Func<T, object>> objectPath, Action<FunctionScoreDecayFieldDescriptor> descriptorBuilder)
5555
{
56-
var fn = new ExpFunction<T>(objectPath, db);
56+
var fn = new ExpFunction<T>(objectPath, descriptorBuilder);
5757
this._Functions.Add(fn);
5858
return fn;
5959
}

0 commit comments

Comments
 (0)