Added method that accepts a map as script parameters
This commit is contained in:
parent
ee5df74a6b
commit
6a936a9efc
|
@ -65,6 +65,16 @@ public class ScriptSortBuilder extends SortBuilder {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets parameters for the script.
|
||||||
|
*
|
||||||
|
* @param params The script parameters
|
||||||
|
*/
|
||||||
|
public ScriptSortBuilder setParams(Map<String, Object> params) {
|
||||||
|
this.params = params;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the sort order.
|
* Sets the sort order.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue