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());
}
Aggregations