mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-10 23:15:04 +00:00
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user