saTypeMap searchattribute.NameTypeMap,
chasmMapper *chasm.VisibilitySearchAttributesMapper,
if sadefs.IsMappable(name) {
// First check if the visibility mapper can handle this field (e.g., custom search attributes)
fieldName, fieldType := tryVisibilityMapper(name, ns, mapper, saTypeMap)