Class IndexingDocproc

java.lang.Object
com.yahoo.vespa.model.search.IndexingDocproc

public class IndexingDocproc extends Object
Utility class to track configuration for which indexing docproc to use by a search cluster.
  • Constructor Details

    • IndexingDocproc

      public IndexingDocproc()
  • Method Details

    • hasExplicitCluster

      public boolean hasExplicitCluster()
    • hasExplicitChain

      public boolean hasExplicitChain()
    • getClusterName

      public String getClusterName(String searchClusterName)
      Returns the name of the docproc cluster running indexing for this search cluster. This is derived from the services file on initialization, this can NOT be used at runtime to determine indexing chain. When initialization is done, the getServiceName() method holds the actual indexing docproc chain object.
      Returns:
      the name of the docproc cluster associated with this
    • getChainName

      public String getChainName()
    • setChainName

      public void setChainName(String name)
    • setClusterName

      public void setClusterName(String name)
      Sets the name of the docproc cluster running indexing for this search cluster. This is for initial configuration, and will not reflect the actual indexing chain. See getClusterName(java.lang.String) for more detail.
      Parameters:
      name - the name of the docproc cluster associated with this
    • getServiceName

      public String getServiceName()
    • setChain

      public void setChain(DocprocChain chain)
      Sets the docproc chain that will be running indexing for this search cluster. This is set by the Content model during build.
      Parameters:
      chain - the chain that is to run indexing for this cluster