Search in sources :

Example 1 with IndexingDocprocChain

use of com.yahoo.vespa.model.search.IndexingDocprocChain in project vespa by vespa-engine.

the class Content method addIndexingChain.

private static void addIndexingChain(ContainerCluster containerCluster) {
    DocprocChain chainAlreadyPresent = containerCluster.getDocprocChains().allChains().getComponent(new ComponentId(IndexingDocprocChain.NAME));
    if (chainAlreadyPresent != null) {
        if (chainAlreadyPresent instanceof IndexingDocprocChain)
            return;
        throw new IllegalArgumentException("A docproc chain may not have the ID '" + IndexingDocprocChain.NAME + ", since this is reserved by Vespa. Please use a different ID.");
    }
    containerCluster.getDocprocChains().add(new IndexingDocprocChain());
}
Also used : IndexingDocprocChain(com.yahoo.vespa.model.search.IndexingDocprocChain) DocprocChain(com.yahoo.vespa.model.container.docproc.DocprocChain) IndexingDocprocChain(com.yahoo.vespa.model.search.IndexingDocprocChain) ComponentId(com.yahoo.component.ComponentId)

Aggregations

ComponentId (com.yahoo.component.ComponentId)1 DocprocChain (com.yahoo.vespa.model.container.docproc.DocprocChain)1 IndexingDocprocChain (com.yahoo.vespa.model.search.IndexingDocprocChain)1