Added method that accepts a map as script parameters

This commit is contained in:
Martijn van Groningen 2012-10-21 00:46:19 +02:00
parent ee5df74a6b
commit 6a936a9efc
1 changed files with 10 additions and 0 deletions

View File

@ -65,6 +65,16 @@ public class ScriptSortBuilder extends SortBuilder {
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.
*/