Interface ScriptOperations
- All Known Subinterfaces:
ElasticsearchOperations
- All Known Implementing Classes:
AbstractElasticsearchTemplate
,ElasticsearchTemplate
public interface ScriptOperations
This interfaces defines the operations to access the
Elasticsearch script API.
- Since:
- 5.1
- Author:
- Peter-Josef Meisch
-
Method Summary
-
Method Details
-
putScript
Stores the given script in the Elasticsearch cluster.- Returns:
- {true if successful
-
getScript
Gest the script with the given name.- Parameters:
name
- the name of the script- Returns:
- Script or null when a script with this name does not exist.
-
deleteScript
Deletes the script with the given name- Parameters:
name
- the name of the script.- Returns:
- true if the request was acknowledged by the cluster.
-