Interface SearchScript.LeafFactory

  • Enclosing class:
    SearchScript

    public static interface SearchScript.LeafFactory
    A factory to construct SearchScript instances.
    • Method Summary

      Modifier and Type Method Description
      boolean needs_score()
      Return true if the script needs _score calculated, or false otherwise.
      SearchScript newInstance​(org.apache.lucene.index.LeafReaderContext ctx)  
    • Method Detail

      • newInstance

        SearchScript newInstance​(org.apache.lucene.index.LeafReaderContext ctx)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • needs_score

        boolean needs_score()
        Return true if the script needs _score calculated, or false otherwise.