final FieldMapper<?> mapper = context.smartNameFieldMapper(fieldName);
if(mapper == null) {
throw new FacetPhaseExecutionException(fieldName, "no mapping found for " + fieldName);
}
final FieldDataType fieldDataType = mapper.fieldDataType();
final IndexFieldData fieldData = context.fieldData().getForField(mapper);
return new TypedFieldData(fieldData, fieldDataType);
}
return null;
}