public void addDocument(SDDocumentType document) {
        if (documentType != null) {
            throw new IllegalArgumentException("Schema cannot have more than one document");
        }
        documentType = document;
    }
Adds a document type which is defined in this search definition

@param document the document type to add
config-model/src/main/java/com/yahoo/schema/Schema.java