public SDDocumentType getDocument(String name) {
        if (documentType != null && name.equals(documentType.getName())) {
            return documentType;
        }
        return null;
    }
Gets a document from this search definition

@param name the name of the document to return
@return the contained or used document type, or null if there is no such document
config-model/src/main/java/com/yahoo/schema/Schema.java