@Override
    protected CompoundName unalias(CompoundName nameOrAlias) {
        if (nameOrAlias.first().equalsIgnoreCase("rankfeature")
            || nameOrAlias.first().equalsIgnoreCase("input")) {
            if (nameOrAlias.size() > 1) // only alias the prefix
                return nameOrAlias.rest().prepend("ranking", "features");
            else
                return nameOrAlias;
        }
        else if (nameOrAlias.first().equalsIgnoreCase("rankproperty")) {
            if (nameOrAlias.size() > 1) // only alias the prefix
                return nameOrAlias.rest().prepend("ranking", "properties");
            else
                return nameOrAlias;
        }

        // No special handling
        return super.unalias(nameOrAlias);
    }
Creates an instance with a set of aliases. The given aliases will be used directly by this class.
To make this class immutable and thread safe, relinquish ownership of the parameter map.
container-search/src/main/java/com/yahoo/search/query/properties/QueryPropertyAliases.java