use of com.yahoo.vespa.model.application.validation.change.search.DocumentDatabaseChangeValidator in project vespa by vespa-engine.
the class IndexedSearchClusterChangeValidator method validateDocumentDatabase.
private static List<ConfigChangeAction> validateDocumentDatabase(ContentCluster currentCluster, ContentCluster nextCluster, String docTypeName, DocumentDatabase currentDb, DocumentDatabase nextDb, ValidationOverrides overrides, Instant now) {
NewDocumentType currentDocType = currentCluster.getDocumentDefinitions().get(docTypeName);
NewDocumentType nextDocType = nextCluster.getDocumentDefinitions().get(docTypeName);
List<VespaConfigChangeAction> result = new DocumentDatabaseChangeValidator(currentDb, currentDocType, nextDb, nextDocType).validate(overrides, now);
return modifyActions(result, getSearchNodeServices(nextCluster.getSearch().getIndexed()), docTypeName);
}
Aggregations