Search in sources :

Example 1 with DocumentDatabaseChangeValidator

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);
}
Also used : DocumentDatabaseChangeValidator(com.yahoo.vespa.model.application.validation.change.search.DocumentDatabaseChangeValidator) NewDocumentType(com.yahoo.documentmodel.NewDocumentType)

Aggregations

NewDocumentType (com.yahoo.documentmodel.NewDocumentType)1 DocumentDatabaseChangeValidator (com.yahoo.vespa.model.application.validation.change.search.DocumentDatabaseChangeValidator)1