public void setFieldId(SDField field, int id) {
        field.setId(id, docType);
    }
Creates a new document type.
The document type id will be generated as a hash from the document type name.

@param name the name of the new document type
@param schema check for type ID collisions in this search definition
config-model/src/main/java/com/yahoo/schema/document/SDDocumentType.java