Class TermsSetQueryScript


  • public abstract class TermsSetQueryScript
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TermsSetQueryScript​(java.util.Map<java.lang.String,​java.lang.Object> params, SearchLookup lookup, org.apache.lucene.index.LeafReaderContext leafContext)  
    • Method Summary

      Modifier and Type Method Description
      abstract java.lang.Number execute()  
      java.util.Map<java.lang.String,​ScriptDocValues<?>> getDoc()
      The doc lookup for the Lucene segment this script was created for.
      java.util.Map<java.lang.String,​java.lang.Object> getParams()
      Return the parameters for this script.
      long runAsLong()
      Return the result as a long.
      void setDocument​(int docid)
      Set the current document to run the script on next.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TermsSetQueryScript

        public TermsSetQueryScript​(java.util.Map<java.lang.String,​java.lang.Object> params,
                                   SearchLookup lookup,
                                   org.apache.lucene.index.LeafReaderContext leafContext)
    • Method Detail

      • getParams

        public java.util.Map<java.lang.String,​java.lang.Object> getParams()
        Return the parameters for this script.
      • getDoc

        public java.util.Map<java.lang.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.
      • runAsLong

        public long runAsLong()
        Return the result as a long. This is used by aggregation scripts over long fields.
      • execute

        public abstract java.lang.Number execute()