private void addAlias(String alias, String field) {
        ensureNotFrozen();
        if (aliases == null)
            aliases = new HashMap<>();
        aliases.put(toLowerCase(alias), field);
    }
Adds a field to this

@throws IllegalStateException if this is frozen
container-search/src/main/java/com/yahoo/search/query/profile/types/QueryProfileType.java