public String getArg1() {
            if (type == Type.NEAREST_NEIGHBOR) {
                return distanceMetric.name();
            }
            return getMatchingName();
        }
Converts to the right index type from a field datatype
config-model/src/main/java/com/yahoo/schema/derived/VsmFields.java