Class FilterScript

java.lang.Object
org.elasticsearch.script.DocBasedScript
org.elasticsearch.script.FilterScript

public abstract class FilterScript extends DocBasedScript
A script implementation of a query filter. See ScriptQueryBuilder.
  • Field Details

  • Constructor Details

  • Method Details

    • execute

      public abstract boolean execute()
      Return true if the current document matches the filter, or false otherwise.
    • getParams

      public Map<String,Object> getParams()
      Return the parameters for this script.
    • setDocument

      public void setDocument(int docid)
      Set the current document to run the script on next.
      Overrides:
      setDocument in class DocBasedScript