public static boolean isConstantFeature(Reference reference) {
        if ( ! isSimpleFeature(reference)) return false;
        return reference.name().equals("constant");
    }
Returns true if this is a constant
searchlib/src/main/java/com/yahoo/searchlib/ranking/features/FeatureNames.java