Class StringSortScript

java.lang.Object
org.opensearch.script.StringSortScript
All Implemented Interfaces:
ScorerAware

public abstract class StringSortScript extends Object
Script for sorting strings
Opensearch.internal:
  • Field Details

  • Constructor Details

    • StringSortScript

      public StringSortScript(Map<String,Object> params, SearchLookup lookup, org.apache.lucene.index.LeafReaderContext leafContext)
  • Method Details

    • execute

      public abstract String execute()
    • getParams

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

      public void setScorer(org.apache.lucene.search.Scorable scorer)
      Specified by:
      setScorer in interface ScorerAware
    • get_score

      public double get_score()
      Return the score of the current document.
    • getDoc

      public Map<String,ScriptDocValues<?>> getDoc()
      The doc lookup for the Lucene segment this script was created for.
    • setDocument

      public void setDocument(int docid)
      Set the current document to run the script on next.