fieldName, err := mapper.GetFieldName(name, ns.String())
if err != nil {
// because this search attribute is not defined in the mapper, but might
// exist with a different name in the namespace.
return "", enumspb.INDEXED_VALUE_TYPE_UNSPECIFIED
}
// Mapper successfully resolved the field name, now check if it exists in the type map