public void add(RankProfile.Constant constant) {
        constants.put(constant.name(), constant);
    }
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