Class IndexingScript

java.lang.Object
com.yahoo.schema.derived.Derived
com.yahoo.schema.derived.IndexingScript

public final class IndexingScript extends Derived
An indexing language script derived from a search definition. An indexing script contains a set of indexing statements, organized in a composite structure of indexing code snippets.
Author:
bratseth
  • Constructor Details

    • IndexingScript

      public IndexingScript(Schema schema, boolean isStreaming)
  • Method Details

    • derive

      protected void derive(Schema schema)
      Description copied from class: Derived
      Derives the content of this configuration. This default calls derive(Document) for each document and derive(SDField) for each search definition level field AND sets the name of this to the name of the input search definition
      Overrides:
      derive in class Derived
    • derive

      protected void derive(ImmutableSDField field, Schema schema)
      Description copied from class: Derived
      Derives the content of this configuration. This default does nothing.
      Overrides:
      derive in class Derived
    • expressions

      public Iterable<com.yahoo.vespa.indexinglanguage.expressions.Expression> expressions()
    • getDerivedName

      public String getDerivedName()
      Specified by:
      getDerivedName in class Derived
    • getConfig

      public void getConfig(com.yahoo.vespa.configdefinition.IlscriptsConfig.Builder configBuilder)
    • export

      public void export(String toDirectory) throws IOException
      Throws:
      IOException