Interface ScriptOperations

All Known Subinterfaces:
ElasticsearchOperations
All Known Implementing Classes:
AbstractElasticsearchTemplate, ElasticsearchRestTemplate, ElasticsearchTemplate

public interface ScriptOperations
This interfaces defines the operations to access the Elasticsearch script API.
Since:
5.1
Author:
Peter-Josef Meisch
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deletes the script with the given name
    Gest the script with the given name.
    boolean
    putScript(Script script)
    Stores the given script in the Elasticsearch cluster.
  • Method Details

    • putScript

      boolean putScript(Script script)
      Stores the given script in the Elasticsearch cluster.
      Returns:
      {true if successful
    • getScript

      @Nullable Script getScript(String name)
      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

      boolean deleteScript(String name)
      Deletes the script with the given name
      Parameters:
      name - the name of the script.
      Returns:
      true if the request was acknowledged by the cluster.